Hi,
I have a problem with CFHTTP when used with a proxy.
It gives time out / connection failure.
The dump of the cfhttp is :
----------------------------------
struct
Charset= [empty string]
ErrorDetail= Connect Exception: Connection timed out: connect
Filecontent= Connection Failure
Header= [undefined struct element]
Mimetype= Unable to determine MIME type of file.
Responseheader= struct [empty]
Statuscode= Connection Failure. Status code unavailable.
Text= YES
-----------------------------------
What I try to do is to execute a CGI, a perl file, to query some files, if they
exist, the perl file will send it back to the client via http. The files are
encoded and package within a XML tag.
Basically, the network is :
Client-----> ColdFusion MX7 -------> Proxy ------> CGI Server
The code I used to test this is :
----------------------begin code 1---------------------------
<CFHTTP METHOD="POST" URL="http://myproxy/cgi-bin/mro/perlFile.pl"
result="strXMLFile">
<cfhttpparam name="strOutputTo" type="formfield" value="Screen">
<cfhttpparam name="strCurrentUrl" type="formfield"
value="http://cfmServer/cfmFile.cfm">
<cfhttpparam name="strMasterDwg" type="formfield" value="123445">
<cfhttpparam name="strMasterRev" type="formfield" value="D">
<cfhttpparam name="strDwgInRev" type="formfield"
value="REVISION">
<cfhttpparam name="strToolNumbers" type="formfield"
value="123445">
<cfhttpparam name="strDwgServer" type="formfield" value="wwt">
<cfhttpparam name="strOverlay" type="formfield" value="FALSE">
</CFHTTP>
<cfdump var="#strXMLFile#">
<hr />
<cfoutput>
File Content 1== #HTMLCodeFormat(strXMLFile.FileContent)# ==
</cfoutput>
----------------------end code 1---------------------------
where
- myproxy = the proxy
- cfmserver = the MX7 server
- cgiserver = server where reside the perl file
I tried to use the CFHTTP attributes proxyserver and proxyport without succes.
The code 2 is shown below:
-----------------------begin code 2------------------
<CFHTTP METHOD="POST" URL="http://cgiserver/cgi-bin/mro/perlFile.pl"
result="strXMLFile" proxyserver="myproxy" proxyport="XXXX">
<cfhttpparam name="strOutputTo" type="formfield" value="Screen">
<cfhttpparam name="strCurrentUrl" type="formfield"
value="http://cfmServer/cfmFile.cfm">
<cfhttpparam name="strMasterDwg" type="formfield" value="123445">
<cfhttpparam name="strMasterRev" type="formfield" value="D">
<cfhttpparam name="strDwgInRev" type="formfield"
value="REVISION">
<cfhttpparam name="strToolNumbers" type="formfield"
value="123445">
<cfhttpparam name="strDwgServer" type="formfield" value="wwt">
<cfhttpparam name="strOverlay" type="formfield" value="FALSE">
</CFHTTP>
<cfdump var="#strXMLFile#">
<hr />
<cfoutput>
File Content 1== #HTMLCodeFormat(strXMLFile.FileContent)# ==
</cfoutput>
-----------------------end code 2--------------------
The strange things is that when I call directly the CGIserver I got what I
expected ie the files I requested !!!!
I google and tried a lot of suggestions from people who got a similar problem
of "Connection failure" but not necessesarely with a proxy.
Things I tried for example:
1-http://www.talkingtree.com/blog/index.cfm/2004/7/28/20040729#more
2-http://www.houseoffusion.com/cf_lists/index.cfm?method=messages&threadid=21241&forumid=4
3-http://qaix.com/coldfusion/313-460-cfhttp-connection-failure-read.shtml
Anyone have an idea ?
I appreciate your help !
Thanks
Waltereo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225950
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54