java - Simulate request and get return data
某草草
某草草 2017-05-17 10:05:51
0
2
535

http://www.newrank.cn/public/...

How to simulate a search request to get the returned json data

No data returned. How to solve this situation

某草草
某草草

reply all(2)
我想大声告诉你

There are many situations that can lead to such a result. The more common one is, 请求头的内容没有包含服务器需要信息, 或者是cookies里面的内容, 没有包含服务器需要的信息, 所以被服务器判断为爬虫, 所以无法取得正常的结果. 你可以试下将浏览器的请求头cookies分别拷贝到你的程序中再去请求, 如果还是不行, 只能用类似fiddlerThis kind of tool will do a detailed analysis

给我你的怀抱

Some requests require a Referer to request data, or some require cookie verification. You need to check whether previous successful cases are restricted by these conditions!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!