4 votes
Need settable User-Agent for browser sniffing feeds

Description

 
Some sites like Facebook perform browser sniffing on all http requests, even those for feeds. As a result, the RSS Toolkit can't load the feeds because the site redirects the request to http://www.facebook.com/browser.php, an html page. We need to add some way of setting the User-Agent string that is used under the covers for the request.

File Attachments


No files are attached


Comments

most recent at top (show oldest at top)
jStengel wrote Jul 24 2008 at 8:23 PM
I ran into this issue with Feedburner and Blogger as well. I wrote an article on how I fixed it here: http://weblogs.asp.net/jstengel/archive/2008/07/24/useragent-fix-for-the-rsstoolkit-2-0-0-0.aspx

I basically hardcoded in a UserAgent but a better solution would be to have that be able to be overriden as a property in the control.

simbolo wrote Feb 11 2008 at 1:10 AM
Using a HttpWebRequest makes it possible to read the response as a stream and pass it the xml doc reader. This HttpWebRequest allows us to set any settings for the HTTP request that gets the feed, you can set such items like User Agent and credentials.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987