Using CFHTTP to grab a Google News RSS feed

2009-09-14 Thread Jonathan Jacobs

Hi,

I have a function that has loon worked just fine and recently stopped.  It 
hangs when it tries to access news.google.com using CFHTTP.  Does anyone know 
if something changed at google to cause this problem.  My code to grab the fee 
is as follows.

cfhttp url=http://news.google.com/?q=hipposoutput=rss; method=GET 
resolveurl=No charset=utf-8 useragent=Firefox/cfhttp

CFOUTPUT
#cfhttp.FileContent#
/CFOUTPUT

If I switch to Yahoo news, it works fine as it does for just about any other 
site.  Problem with Yahoo news is that after a few refreshes, I start getting 
error messages from Yahoo instead of the news feed.  I'm happy to sign up or 
purchase the feed if that is necessary, I just need to get it working again.

Thanks.






~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326270
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


re: Using CFHTTP to grab a Google News RSS feed

2009-09-14 Thread Jason Fisher

That path works fine for me, output with cfdump 
var=#xmlParse(cfhttp.fileContent)# /

Looks like the same content entries I get if I just point my browser 
directly to http://news.google.com/?q=hipposoutput=rss

Can your web server resolve the DNS for news.google.com?
 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326274
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4