search

Home  >  Q&A  >  body text

java - Simulate request and get return data

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

某草草某草草2775 days ago590

reply all(2)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-17 10:07:51

    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

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-17 10:07:51

    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!

    reply
    0
  • Cancelreply