以下是一个示例网站
http://us.blizzard.com/store/browse.xml?f=c:5,c:33
当我在Firefox中检查响应时,它是application/xhtml
当我用以下标题向同一个url服务器端发出请求时
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;
响应为application/xml
有什么想法吗?
谢谢