Re: Any cfhttp gurus out there?
Try adding these params: Sounds like the response is gzipped by IIS. >I used to be able hit this link and get results with a ... >http://www.dealsonwheels.com/dowrss/chevrolet_camaro.aspx > >Now, all I get is a value of "Connection Failure" for cfhttp.fileconent. >I know the link works since I can add it to FireFox and a Live Bookmark >is created. Any ideas? Is it an encoding or a useragent issue? I'm on a >CF8 box. > >Thanks, Che ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309196 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Any cfhttp gurus out there?
Also, if you're parsing the content you get back, perhaps you'd benefit from cffeed, ie. http://www.dealsonwheels.com/dowrss/chevrolet_camaro.aspx"; query="qry_chevs"> I tried the exact code above and got the expected result. I then tried the code below using cfhttp and recieved 'Connection Failure': http://www.dealsonwheels.com/dowrss/chevrolet_camaro.aspx"; method="get"/> HTH Dominic -- Blog it up: http://fusion.dominicwatson.co.uk ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309166 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Any cfhttp gurus out there?
Alan/Dave... thanks... now I get it. Had not run into something quite like that before. Alan, thanks for the headsup on "HttpFox". Regards, Che -Original Message- From: Alan Rother [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 2:31 PM To: CF-Talk Subject: Re: Any cfhttp gurus out there? Sorry, I did not mean to hit send... Quick explanation. There are two CFHTTP, the first gets a cookie value back from the server, the second makes use fo the cookie, I don't know if the server cares, but I've seen security models like that before, so it's good to send a cookie back, it makes you look authentic. Second, I added all of the HTTP request params my firefox install was sending. I got them by using a FF add on called HttpFox, which lets you see all of your request and response params. Also, you can delete my comment in the middle of the code, I was using that as a comparison while I filtered out the cookie value from the CFHTTP. HTH =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309161 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Any cfhttp gurus out there?
Sorry, I did not mean to hit send... Quick explanation. There are two CFHTTP, the first gets a cookie value back from the server, the second makes use fo the cookie, I don't know if the server cares, but I've seen security models like that before, so it's good to send a cookie back, it makes you look authentic. Second, I added all of the HTTP request params my firefox install was sending. I got them by using a FF add on called HttpFox, which lets you see all of your request and response params. Also, you can delete my comment in the middle of the code, I was using that as a comparison while I filtered out the cookie value from the CFHTTP. HTH =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309159 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Any cfhttp gurus out there?
> Dave, what do you mean exactly? Do you mean any browser? I've > tried a few and get the same results each time. I mean, find out EXACTLY what your browser is sending, and send the same thing. Not just User-Agent, but all the other HTTP request headers too. Use CFHTTPPARAM TYPE="CGI" to set the other headers, and use the "HTTP_" prefix: for example, HTTP_HOST. Here are the headers from Firebug: Host: www.dealsonwheels.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cache-Control: max-age=0 I got a cookie the first time I tried, but it apparently isn't required. I took it out using the "Modify Headers" extension, and everything worked fine. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ 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! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309158 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Any cfhttp gurus out there?
Dump out the entire cfhttp to see what the headers look like. It may be that they are using connection keep-alive to prevent spidering or something else. In some cases the page is doing a redirect and you don't see it because cfhttp turns on redirect as a default. Setting it to no may tell you more about the request. Once my computer is free (it's bogged down parsing a million plus comics) I'll test it out to see what I can. On Wed, Jul 16, 2008 at 1:53 PM, Che Vilnonis <[EMAIL PROTECTED]> wrote: > I used to be able hit this link and get results with a ... > http://www.dealsonwheels.com/dowrss/chevrolet_camaro.aspx > > Now, all I get is a value of "Connection Failure" for cfhttp.fileconent. > I know the link works since I can add it to FireFox and a Live Bookmark > is created. Any ideas? Is it an encoding or a useragent issue? I'm on a > CF8 box. > > Thanks, Che > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309157 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Any cfhttp gurus out there?
Use This http://www.dealsonwheels.com/dowrss/chevrolet_camaro.aspx"; method="GET" useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: 1.8.1.4) Gecko/20070515 Firefox/2.0.4"> http://www.dealsonwheels.com/dowrss/chevrolet_camaro.aspx"; method="GET" useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0"> -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309156 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Any cfhttp gurus out there?
Dave, what do you mean exactly? Do you mean any browser? I've tried a few and get the same results each time. See snippet below. http://www.dealsonwheels.com/dowrss/chevrolet_camaro.aspx"; method="GET" result="xmlFeed" useragent="#useragent#"> -Original Message- > I used to be able hit this link and get results with a ... > http://www.dealsonwheels.com/dowrss/chevrolet_camaro.aspx > > Now, all I get is a value of "Connection Failure" for > cfhttp.fileconent. > I know the link works since I can add it to FireFox and a Live > Bookmark is created. Any ideas? Is it an encoding or a useragent > issue? I'm on a CF8 box. The only way to tell, generally, is to make your HTTP request identical to a browser's (user agent, etc), then turn off request headers one by one until it doesn't work (again). ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309154 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Any cfhttp gurus out there?
> I used to be able hit this link and get results with a ... > http://www.dealsonwheels.com/dowrss/chevrolet_camaro.aspx > > Now, all I get is a value of "Connection Failure" for > cfhttp.fileconent. > I know the link works since I can add it to FireFox and a > Live Bookmark is created. Any ideas? Is it an encoding or a > useragent issue? I'm on a CF8 box. The only way to tell, generally, is to make your HTTP request identical to a browser's (user agent, etc), then turn off request headers one by one until it doesn't work (again). Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ 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! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309152 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Any cfhttp gurus out there?
I used to be able hit this link and get results with a ... http://www.dealsonwheels.com/dowrss/chevrolet_camaro.aspx Now, all I get is a value of "Connection Failure" for cfhttp.fileconent. I know the link works since I can add it to FireFox and a Live Bookmark is created. Any ideas? Is it an encoding or a useragent issue? I'm on a CF8 box. Thanks, Che ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309151 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4