时间:2021-07-01 10:21:17 帮助过:25人阅读
header信息:
HTTP/1.1 302 Found
Date: Fri, 26 Apr 2013 00:52:02 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Location:
Cache-Control: private
Content-Type: text/html;
charset=utf-8 Content-Length: 117
但是重定向的目标网址还是当前页面,后来分析了下发现是发生了重定向循环
PS:本地登陆教务系统之后,用IE浏览器输入目标网站可以直接进入
但是如果用火狐和Chrome就不行,出现重定向循环
显示:Object moved to here.
header信息:
HTTP/1.1 302 Found
Date: Fri, 26 Apr 2013 00:52:02 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Location:
Cache-Control: private
Content-Type: text/html;
charset=utf-8 Content-Length: 117
安装 wireshark, 然后截获 IE 的所有请求数据,用 curl 做完整的模拟
让curl递归的抓取http头中Location中指明的url 加上curlsetopt($ch, CURLOPTFOLLOWLOCATION, 1); 试试