Here is an example website
http://us.blizzard.com/store/browse.xml?f=c:5,c:33
When I inspect the response in Firefox it is application/xhtml
When I make a request to the same url server side with the following headers
var request = (HttpWebRequest)WebRequest.Create(url);
var cookieContainer = new CookieContainer();
request.CookieContainer = cookieContainer;
request.UserAgent = @"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5";
request.Method = "GET";
request.AllowAutoRedirect = true;
request.Timeout = 15000;
The response is application/xml
Any Ideas?
Thanks
Try including
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8to your request.EDIT:
Try to replicate the request from Firefox.
I tried this (I used chrome + chrome dev tools to get the headers)
and got back
application/xhtml+xml