我想抓点儿数据,地址是 https://www.uukanshu.com/b/151226/
然而浏览器和 postman 访问没问题,200
用 curl 就不行了,返回一个 302 跳转 404 的页面。
我特意查看了 postman 的 header
使用 curl 加上 postman 的 header 执行一下
curl -H "User-Agent:PostmanRuntime/7.28.2;Accept:*/*;Host:www.uukanshu.com;Accept-Encoding:gzip, deflate, br;Connection:keep-alive;Cookie:ASP.NET_SessiOnId=tbugww5w3cqigikqsg2ezvm5; fcip=111" https://www.uukanshu.com/b/151226/ 得到如下的返回
<html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="/404.htm">here</a>.</h2> </body></html> 想请教一下如何解决这个问题呢,目标网站没看懂是如何做的校验,谢谢

