Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Mack is right. The CFHTTP tag should read:
<cfhttp method="post" url=http://www.supportingadvancement.com/ throwonerror="Yes"></cfhttp>
It's possible but highly unlikely that they're running their site off port 8500, especially since that's one of the standard ports used on a CF development install
Copy link to clipboard
Copied
I'm sorry but I did several tests before I posted my code to this forum.
My original code is:
<cfhttp
url=http://www.supportingadvancement.com/>
Which is working on my local but not in prod. After googling, I started to try many different things and I forgot to clean up when posting my code here, really sorry.
I also tried: <cfhttp method="GET" url=http://www.supportingadvancement.com/>, it did not work either.
Copy link to clipboard
Copied
In a previous message you said that telnet
www.supportingadvancement.com 80 results in a blank screen. This
usually means that telnet is connected and the TCP connection was
established successfully.
Can you restart the production CF server to make sure that the IP
address of www.supportingadvancement.com is the right one ? (java
caches IP addresses indefinitely by default).
Mack
Copy link to clipboard
Copied
I stopped and restarted CF prod. server and still get the connection failure message
Copy link to clipboard
Copied
Do I have to do something in CF administrator may be?
Copy link to clipboard
Copied
I don't think there's something in the CF admin that can cause this
(except Sandbox security but the error message should be different).
I'm out of ideas currently but I can try and help you off-forums
tomorrow if you want.
Mack
Copy link to clipboard
Copied
off-forums? let me know how.
I also have spoken to my network admin if there is some kind of firewall blocking the site last Friday.
This morning I still get connection failure! it shouldn't be this difficult isn't it?