当我在任何浏览器中打开http://en.wikipedia.org/wiki/Category:Births_by_year,我看到许多子类分类页面和一子页面是http://en.wikipedia.org/wiki/Park_Sung-Baek为什么我会看到维基百科的不同页面?
但是,当我与Java读同一页上,我得到类别页面不同的内容。而不是上面提到的子页面,它包含http://en.wikipedia.org/wiki/User:Mijotoba/Ruth_Stella_Correa_Palacio
它是怎么回事?为什么维基百科提出不同的页面
设置User-Agent
没有帮助。
头请求 “正常” 的内容
GET http://en.wikipedia.org/wiki/Category:Births_by_year HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: ru-RU,zh-CN;q=0.5
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Host: en.wikipedia.org
头,要求 “修改” 内容
GET http://en.wikipedia.org/wiki/Category:Births_by_year HTTP/1.1
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Host: en.wikipedia.org
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
我在这里看到“http://en.wikipedia.org/wiki/User:Mijotoba/Ruth_Stella_Correa_Palacio”,试着用Ctrl + F5重新载入浏览器缓存。 – slugonamission
因为我在Fiddler2中看到内容,所以这不是浏览器缓存。 Ctrl + F5没有帮助。我在所有浏览器中看到第一个版本(IE,FF,GC) –
同样在这里,OSX 10.8 + Chrome/Safari - > Ruth Stella Correa Palacio。 – harism