但是重新導向的目標網址還是當前頁面,後來分析了下發現是發生了重新導向迴圈
PS:本地登陸教務系統之後,用IE瀏覽器輸入目標網站可以直接進入
但是如果用Firefox和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
回複內容:
但是重新導向的目標網址還是當前頁面,後來分析了下發現是發生了重新導向迴圈
PS:本地登陸教務系統之後,用IE瀏覽器輸入目標網站可以直接進入
但是如果用Firefox和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); 試試