Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFHTTP connection failed! 1

Status
Not open for further replies.

cbhead

Technical User
Jul 31, 2002
31
GB
I am trying to get cfhttp to retrive an html page or an xml page that is on a remote server. Every time I try I get the message that the xml file cannot be displayed: connection failed.
This is the code I have used.


<!--- <!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>--->

<CFHTTP URL=&quot; METHOD=&quot;GET&quot;
USERNAME=&quot;ChrisB&quot;
PASSWORD=&quot;chris&quot;
RESOLVEURL=&quot;false&quot;
PROXYSERVER=&quot;proxy.blackpool.gov.uk&quot;
PORT=&quot;5432&quot;
TIMEOUT=&quot;30&quot;></cfhttp>

<html>
<head>
<title>getXML.cfm</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>

<body>
<cfoutput>done...........cfoutput>#cfhttp.statuscode#</cfoutput>
<cfoutput>#CFHTTP.FileContent#</cfoutput>
<iframe src=&quot;</body>
</html>

I am sure I am doing this in the right way but it just doesn't work.
Any ideas would be greatly appreciated!
 
Thanks a lot!
Your tip worked.
I just had to change PORT to PROXYPORT and everything worked fine.
Thanks,
cb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top