For some reason all of our CFHTTP tags have been returning "Connection Failure" for the past couple of days. In the past week, we haven't changed any relevant code, we haven't changed any settings in the CF admin, and we haven't changed any settings or hardware on the servers.
So I'm thinking it's either a network issue, an ISP issue, or (most likely) a firewall issue (our firewall has always been buggy). But why would it only be affecting CFHTTP? I can go to one of our CF servers and use internet explorer to browse the web. Why would IE be able to make HTTP requests, and CF not be able to make HTTP requests? How do CFHTTP requests differ from HTTP requests created by a web browser?
Any ideas? We're using CF5 server on Windows 2000.
Dave Watts 30 September 2004 19:40:45 [ permanent link ]
For some reason all of our CFHTTP tags have been returning > "Connection Failure" for the past couple of days. In the > past week, we haven't changed any relevant code, we haven't > changed any settings in the CF admin, and we haven't changed > any settings or hardware on the servers.>
So I'm thinking it's either a network issue, an ISP issue, or > (most likely) a firewall issue (our firewall has always been > buggy). But why would it only be affecting CFHTTP? I can go > to one of our CF servers and use internet explorer to browse > the web. Why would IE be able to make HTTP requests, and CF > not be able to make HTTP requests? How do CFHTTP requests > differ from HTTP requests created by a web browser?>
Any ideas? We're using CF5 server on Windows 2000.
CFHTTP requests don't really differ significantly from HTTP requests made by a browser. However, your browser may be configured to use a proxy, while CFHTTP wouldn't know anything about that.
For testing, I'd recommend you use a recording proxy, or just download something like wget and use that to test connectivity from your server console.
Jim Campbell 30 September 2004 19:53:03 [ permanent link ]
Try:
<cfdump var="cfhttp.ErrorDetail">
That should reveal some more specific information on what's going wrong.
- Jim
nerd wrote:
For some reason all of our CFHTTP tags have been returning "Connection > Failure" for the past couple of days. In the past week, we haven't > changed any relevant code, we haven't changed any settings in the CF > admin, and we haven't changed any settings or hardware on the servers.>
So I'm thinking it's either a network issue, an ISP issue, or (most > likely) a firewall issue (our firewall has always been buggy). But > why would it only be affecting CFHTTP? I can go to one of our CF > servers and use internet explorer to browse the web. Why would IE be > able to make HTTP requests, and CF not be able to make HTTP > requests? How do CFHTTP requests differ from HTTP requests created by > a web browser?>
Any ideas? We're using CF5 server on Windows 2000.>
A DUMP OF CFHTTP: struct Charset utf-8 ErrorDetail [empty string] Filecontent Connection Failure Header HTTP/1.1 200 OK Date: Tue, 15 Mar 2005 23:28:50 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Vary: Accept-Encoding Cache-Control: private Set-Cookie: ASP.NET_SessionId=hhgadxbizhpbrc55flsopa55; path=/ X-AspNet-Version: 1.1.4322 Content-Type: text/html; charset=utf-8 Mimetype text/html Responseheader struct Cache-Control private Content-Type text/html; charset=utf-8 Date Tue, 15 Mar 2005 23:28:50 GMT Explanation OK Http_Version HTTP/1.1 Server Microsoft-IIS/6.0 Set-Cookie ASP.NET_SessionId=hhgadxbizhpbrc55flsopa55; path=/ Status_Code 200 Vary Accept-Encoding X-AspNet-Version 1.1.4322 X-Powered-By ASP.NET
Statuscode 200 OK Text YES
Can anybody see anything useful in the response above?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application
I'm hoping someone on list can spot something that is causing > this issue (Connection Failure) >
...>
A DUMP OF CFHTTP:> struct > Charset utf-8 > ErrorDetail [empty string] > Filecontent Connection Failure > Header HTTP/1.1 200 OK Date: Tue, 15 Mar 2005 23:28:50 > GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Vary: > Accept-Encoding Cache-Control: private Set-Cookie: > ASP.NET_SessionId=hhgadxbizhpbrc55flsopa55; path=/ > X-AspNet-Version: 1.1.4322 Content-Type: text/html; charset=utf-8 >
...>
Can anybody see anything useful in the response above?
It strikes me as odd that you'd get a connection failure message even though the server sent you a response, as indicated by the header. Have you tried using a recording proxy, or testing this from your server console using wget or a browser?
Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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
Bryan Stevenson 16 March 2005 04:46:27 [ permanent link ]
It strikes me as odd that you'd get a connection failure message even > though> the server sent you a response, as indicated by the header. Have you tried> using a recording proxy, or testing this from your server console using > wget> or a browser?
hehe..me too
I haven't tried using a recording proxy or wget (I'll look into those), but in a browser it works fine. If I go there without proper URL params I get a "invalid input type error" as expected...and with the correct params...all is fine.
Thanks
Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: bryan-lmTtMILVy1jq3mzM/vGWq2Ztm2MBb6oo@public.gmane.org web: www.electricedgesystems.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application
Bryan Stevenson 16 March 2005 19:02:50 [ permanent link ]
Hey Dave....what do you use for your proxy recording....I've been poking around and...well....there are a few too many options for me to choose from
Cheers
Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: bryan-lmTtMILVy1jq3mzM/vGWq2Ztm2MBb6oo@public.gmane.org web: www.electricedgesystems.com.cfm/54
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application
Bryan Stevenson 16 March 2005 19:59:52 [ permanent link ]
It strikes me as odd that you'd get a connection failure message even > though> the server sent you a response, as indicated by the header. Have you tried> using a recording proxy, or testing this from your server console using > wget> or a browser?
Dave I decided to go with PureTest from the folks at PureLoad....I installed it on my laptop and setup my browser to use the HTTP recorder as the proxy. Then I tied running my CFM file (which resides on our office dev server) with the CFHTTP request in it to the remote page. I'm getting the request recorded....but I'm not seeing anything useful??
Any ideas?
TIA
Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: bryan-lmTtMILVy1jq3mzM/vGWq2Ztm2MBb6oo@public.gmane.org web: www.electricedgesystems.com ----- Original Message ----- From: "Dave Watts" <dwatts-NrKMKP93hhlBDgjK7y7TUQ@public.gmane.org> To: "CF-Talk" <cf-talk-2K/2x8RPSj9p9z4BATjFtQC/G2K4zDHf@public.gmane.org> Sent: Tuesday, March 15, 2005 4:14 PM Subject: RE: CFHTTP Connection Failure
I'm hoping someone on list can spot something that is causing>> this issue (Connection Failure) >>
...>>
A DUMP OF CFHTTP:>> struct>> Charset utf-8>> ErrorDetail [empty string]>> Filecontent Connection Failure>> Header HTTP/1.1 200 OK Date: Tue, 15 Mar 2005 23:28:50>> GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Vary:>> Accept-Encoding Cache-Control: private Set-Cookie:>> ASP.NET_SessionId=hhgadxbizhpbrc55flsopa55; path=/>> X-AspNet-Version: 1.1.4322 Content-Type: text/html; charset=utf-8>>
...>>
Can anybody see anything useful in the response above?>
It strikes me as odd that you'd get a connection failure message even > though> the server sent you a response, as indicated by the header. Have you tried> using a recording proxy, or testing this from your server console using > wget> or a browser?>
Fig Leaf Software provides the highest caliber vendor-authorized> instruction at our training centers in Washington DC, Atlanta,> Chicago, Baltimore, Northern Virginia, or on-site at your location.> Visit http://training.figleaf.com/ for more information!>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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
Dave I decided to go with PureTest from the folks at > PureLoad....I installed it on my laptop and setup my browser > to use the HTTP recorder as the proxy. > Then I tied running my CFM file (which resides on our office > dev server) with the CFHTTP request in it to the remote page. > I'm getting the request recorded....but I'm not seeing > anything useful??
You will need to compare the HTTP requests and responses, not just the requests. If you can make a successful request from the browser, you will need to change your CFHTTP request to be more similar to the one your browser makes. If your browser makes a request, and receives a redirect, you'll need to ensure that CFHTTP also responds appropriately to the redirect.
Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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
Hey Dave....what do you use for your proxy recording....I've > been poking around and...well....there are a few too many > options for me to choose from
Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information!
Bryan Stevenson 16 March 2005 20:19:16 [ permanent link ]
You will need to compare the HTTP requests and responses, not just the> requests.
I thought that's what the HTTP recorder does??
Should the recorder by running on my laptop (dev machine) or on the dev server? I'm having trouible thinking this through today as cement walls are being sawed open and jackhammered out in the office next to ours (with no advanced notice I might add...grrr).
If you can make a successful request from the browser, you will> need to change your CFHTTP request to be more similar to the one your> browser makes.
I've changed the user_agent to match my browser...no luck there
If your browser makes a request, and receives a redirect,> you'll need to ensure that CFHTTP also responds appropriately to the> redirect.
The original URL I was trying did redirect....so I tried with the URL it redirects to (in browser and in code)...still no love
Cheers
Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: bryan-lmTtMILVy1jq3mzM/vGWq2Ztm2MBb6oo@public.gmane.org web: www.electricedgesystems.comcfm/54
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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
You mentioned that you were seeing requests, but you didn't say you were seeing responses, so I assumed that you weren't for some reason.
Should the recorder by running on my laptop (dev machine) or > on the dev server? I'm having trouible thinking this through > today as cement walls are being sawed open and jackhammered > out in the office next to ours (with no advanced notice I > might add...grrr).
It can run anywhere between the browser and the server. Typically, I run it on the same machine as the client, because that's where I happen to be.
The original URL I was trying did redirect....so I tried with > the URL it redirects to (in browser and in code)...still no love
Perhaps it's also setting a cookie, in which case you would need to send that cookie along on the subsequent request.
Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information!
Bryan Stevenson 16 March 2005 20:50:14 [ permanent link ]
The original URL I was trying did redirect....so I tried with>> the URL it redirects to (in browser and in code)...still no love >
Perhaps it's also setting a cookie, in which case you would need to send> that cookie along on the subsequent request.
Thanks for the other info...I'll keep it running on my laptop then (easier)
You mention the cookie...there does appear to be one being set.. extracted from header: "private Set-Cookie: ASP.NET_SessionId=bifpcg2ritgn1v45o4y45ovo;"
I see my response above was a bit off... I works if I go to the final URL (the one pointed to by the re-direct) in my browser....but not when I run my CFM file (which also points directly to the final URL)
BTW...how would I send along the cookie?
I'll install Charles now and see if that shows me anything different
TIA
Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: bryan-lmTtMILVy1jq3mzM/vGWq2Ztm2MBb6oo@public.gmane.org web: www.electricedgesystems.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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
Bryan Stevenson 16 March 2005 21:14:31 [ permanent link ]
Hey Dave (and anybody else that wants to chime in),
I'm not sure I'm testing this correctly...so here's what I'm up to:
1) Go straight to remote URL in my browser (and record request/response)
2) Test my CFM file (which has a CFHTTP request to the remote URL mention above) in my browser
What I see in test 1 above is obviously the request/response to/from the remote URL
What I see in test 2 is the request/response to the CFM file on my dev server...and none of the communication that is happening with CFHTTP.
So whatya thnk?
Thanks
PS..I'm doing this with Charles...nice tool....way simpler to use than PureTest
Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: bryan-lmTtMILVy1jq3mzM/vGWq2Ztm2MBb6oo@public.gmane.org web: www.electricedgesystems.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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
Bryan Stevenson 16 March 2005 21:22:49 [ permanent link ]
I've noticed that the request is made with HTTP/1.0 and the response is made using HTTP/1.1
Could that effect anything?
weeee...it's grasping at straws time
Cheers
Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: bryan-lmTtMILVy1jq3mzM/vGWq2Ztm2MBb6oo@public.gmane.org web: www.electricedgesystems.com/54
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application
You mention the cookie...there does appear to be one being set..> extracted from header:> "private Set-Cookie: ASP.NET_SessionId=bifpcg2ritgn1v45o4y45ovo;">
I see my response above was a bit off...> I works if I go to the final URL (the one pointed to by the > re-direct) in my browser....but not when I run my CFM file > (which also points directly to the final URL)>
BTW...how would I send along the cookie?
You would have to read it from the first HTTP response, using CFHTTP.ResponseHeader or CFHTTP.Header, then send it along in the next request using CFHTTPPARAM. Now, while CFHTTPPARAM allows you to set TYPE="COOKIE", this may not work for you since it URL-encodes cookie values, which may break your cookie. Instead, you might use TYPE="HEADER", then specify a name of "Cookie" and the value of the cookie for the CFHTTPPARAM value. I ran into this exact problem when using CFMX to talk to a Breeze server through the Breeze XML API.
Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information!
I'm having some trouble with cfhttp and its driving me insane. I've had a site up for a while that reads some dynamically generated xml via cfhttp and worked fine forever. I recently updated my router/firewall and now I get "Connection Failure" as the cfhttp.FileContent results. I don't see anything indicative as to why in my firewalls log files.
I can hit the url "manually" in a browser and see its content fine. I don’t recall having to forward anything special for cfhttp to work... Just plain old port 80 pointing to my web server. Has anyone else run into this? Were you able to solve it? How?
Thanks
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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
I'm having some trouble with cfhttp and its driving me > insane. I've had a site up for a while that reads some > dynamically generated xml via cfhttp and worked fine forever. > I recently updated my router/firewall and now I get > "Connection Failure" as the cfhttp.FileContent results. I > don't see anything indicative as to why in my firewalls log > files.>
I can hit the url "manually" in a browser and see its content > fine. I don't recall having to forward anything special for > cfhttp to work... Just plain old port 80 pointing to my web > server. Has anyone else run into this? Were you able to solve > it? How?
Can you get to the URL from a browser on the server's console? If not, you probably have some problem with the server's network connection. If so, you might want to use a recording proxy or similar tool to see the actual HTTP requests and responses.
Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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
I was writing an email to ask about Recording Proxies and rather or not OpenSTA would be something like what you were talking about... Then... automagically (with no change WHAT SO EVER)... it works again. Imagine that.
Sigh... Thanks for the reply.
-----Original Message----- From: Dave Watts [mailto:dwatts-NrKMKP93hhlBDgjK7y7TUQ@public.gmane.org] Sent: Sunday, March 20, 2005 5:01 PM To: CF-Talk Subject: RE: CFHTTP Connection Failure
I'm having some trouble with cfhttp and its driving me > insane. I've had a site up for a while that reads some > dynamically generated xml via cfhttp and worked fine forever. > I recently updated my router/firewall and now I get > "Connection Failure" as the cfhttp.FileContent results. I > don't see anything indicative as to why in my firewalls log > files.>
I can hit the url "manually" in a browser and see its content > fine. I don't recall having to forward anything special for > cfhttp to work... Just plain old port 80 pointing to my web > server. Has anyone else run into this? Were you able to solve > it? How?
Can you get to the URL from a browser on the server's console? If not, you probably have some problem with the server's network connection. If so, you might want to use a recording proxy or similar tool to see the actual HTTP requests and responses.
Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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
This looks like something I could really get some use out of to debug some of my CFHTTP requests. But is there a way to get it to see ones sent from the internal CFMX web server, the one that runs on port 8500?
--- Mary Jo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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
Mary Jo Sminkey 22 March 2005 23:13:30 [ permanent link ]
This looks like something I could really get some use out of to debug > some of my CFHTTP requests. But is there a way to get it to see ones > sent from the internal CFMX web server, the one that runs on port > 8500?
Still trying to figure out how to do this, any ideas??
I'm going through old emails I hadn't read, sorry it's taken so long to respond.
This looks like something I could really get some use out of > to debug some of my CFHTTP requests. But is there a way to > get it to see ones sent from the internal CFMX web server, > the one that runs on port 8500?
The only way I know to do this is with the reverse proxy functionality, which will let you create a Charles listener on one port and have it forward to another.
Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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
If you would like to report an abuse of our service, such as a spam message, please . Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .