Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion Server Administration
Viewing all articles
Browse latest Browse all 78799

XMLValidate DTD behind httpProxy

$
0
0

I have seen a problem with CF10 and XMLValidate when running CF behind a http proxy. My code is evaulating an XML document against its DTD

 

In CF8 and CF9 you added this to the args in JVM config e.g

-Dhttp.ProxyHost=192.168.1.1 -Dhtp.proxyPort=8080

 

then all the http trafic went via the proxy.

 

However in CF10, this doesn't appear to work. Has anyone seen this ?

 

I did some tests and CFHTTP will work if you explicity pass the proxy, but it dosen't work and XMLValidate doesn't work even if the proxy is set in the JVM.config

 

see sample code below im using to test.

 

My Cf10 box is running Solaris 10 on ultrasparc

 

 

<h1>Proxy Host - verify jvm.config works</h1><cfset sys = createObject("java","java.lang.System") ><cfoutput>#sys.getProperty("http.proxyHost")#</cfoutput>  <h1>with proxy -works</h1><cfhttp timeout="5" url="http://www.adobe.com" result="stResult" method="get" proxyServer="192.168.1.1" proxyPort="80080"><cfdump var="#stResult#">  <h1>System Proxy - fails</h1><cfhttp timeout="5" url="http://www.mysite.com/myschema.dtd" result="stResult" method="get"><cfdump var="#stResult#">  <h1>XML Validate - times out</h1><cfset myXML = XMLParse("mydoc.xml")>  <cftry><cfset isValid = XMLValidate(myXML) >  <cfoutput>Is Valid: <cfdump var="#isValid#"></cfoutput><cfcatch type="any"><cfdump var="#cfcatch#"></cfcatch></cftry> 

Viewing all articles
Browse latest Browse all 78799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>