且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

避免重定向

更新时间:2022-04-09 23:31:56

http://www.cotodigital.com.ar/l.asp?cat=1097&id=1097 重定向到 http://www.cotodigital.com.ar/default.asp 因为 HTTP 响应是这样说的.发生这种情况是因为 asp 代码正在检查某些条件 - 错误的页面、cookie、用户代理或引用.检查上述条件.

http://www.cotodigital.com.ar/l.asp?cat=1097&id=1097 redirects to http://www.cotodigital.com.ar/default.asp because HTTP response said to so. This happens because asp code is checking for some condition - a wrong page, or cookies, or user-agent, or referrer. Check the mentioned conditions.

更新:刚刚在我的浏览器中检查:浏览器也被重定向到主页,在那里我点击跳过广告".之后就正常了.

UPDATE: Just checked in my browser: the browser is also redirected to the main page, where i click 'Skip ads'. After that it works OK.

这意味着它设置了一些 cookie,如果没有这些 cookie,它会重定向到主页.

This means it sets some cookies, without which it redirects to the main page.

另见 Scrapy - 如何管理 cookie/会话