Skip to main content
Inspiring
June 24, 2009
Question

CFHTTP help!

  • June 24, 2009
  • 1 reply
  • 2840 views

I'm trying to grab some useful links from the following website (I was told that we already got permission for it):

http://www.supportingadvancement.com/

I'm using CFHTTP and I did it on my machine (localhost), I got the result I wanted.

Then I moved to production server, once I access our website the website won't fire up for around 4 to 5 minutes with error: Connection failure

I'm not sure what this mean. It works just fine from my localhost but not on our production server?

I search for answer in google, one said it may be the firewall and the way to test is to ping and see:

I ping the IP 72.29.101.80 and got respond, so this mean there is no firewall on my prod. server? in that case what could be the problem.

Can anyone help?

I'm using Coldfusion 8 and the web server is in Unix ( for production)

I'm developing from my local in windows env.

Here is my simple code:

<cfhttp

method="post" url=http://www.supportingadvancement.com/ port="8500" throwonerror="Yes"></cfhttp>

<cfset

sStartString = cfhttp.filecontent>

<cfoutput>

#htmlCodeFormat(trim(cfhttp.filecontent))#

</cfoutput>

<cfabort>

This topic has been closed for replies.

1 reply

Participating Frequently
June 24, 2009

I would bet my money on a firewall that drops outgoing packets (maybe

only new connection to port 80 maybe all new tcp/udp connections).

From your server try "telnet www.supportingadvancement.com 80" (from

the command prompt) and see what's the answer (if the console hangs at

"Connecting to ....." then it's a firewall issue).

Mack

Inspiring
June 24, 2009

I did as you said, when I telnet :

1. telnet www.supportingadvancement.com 80

Result: blank screen

when I do this:

2. telnet 72.29.101.80

Result: as you said it hangs with "Connecting to 72.29.101.80.........

Then I got: could not open connection to the host on port 23: connect failed

Now this mean my call using cfhttp failed because my prod. server has firewall that prevent me to call external site?

Then what should I do? can I speak to someone and make an exception to allow this one external site???????

Thanks

Participating Frequently
June 24, 2009

I just noticed that you're trying to connect to port 8500 in your CFHTTP:

url=http://www.supportingadvancement.com/ port="8500"

Is the www.supportingadvancement.com server really on 8500 ?

Mack