|
2精币
你好,请教一个问题,这个是个网盘的文件下载页面http://www.gxp.cc/down-819949.html,如果直接打开这个页面话会跳转到http://www.gxp.cc/file-819949.html这个页面。我想获取的是前面那个下载页面的源码,可是一跳转取得都是后面的那个页面源码。下面是两个页面的抓包:
下载页面http://www.gxp.cc/down-819949.html的:
发送:
GET /down-819949.html HTTP/1.1
Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, */*
Accept-Language: zh-CN
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729;
.NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Accept-Encoding: gzip, deflate
Host: www.gxp.cc
Connection: Keep-Alive
Cookie: Hm_lvt_215e97a218ffb7efca4c7a50555823f2=1332254061446; Hm_lpvt_215e97a218ffb7efca4c7a50555823f2=1332254061446; PHPSESSID=d843f8b43bbff5779595043abae922f7; cnzz_a3161611=33;
sin3161611=; rtime=0; ltime=1332254061324; cnzz_eid=395044-1332239315-
接受:
HTTP/1.1 302 Found
Server: nginx/1.0.1
Date: Tue, 20 Mar 2012 14:43:08 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
X-Powered-By: PHP/5.2.17
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
location: /file-819949.html
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 29
-------------------------
跳转到的页面的http://www.gxp.cc/file-819949.html
发送:
GET /file-819949.html HTTP/1.1
Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, */*
Accept-Language: zh-CN
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729;
.NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Accept-Encoding: gzip, deflate
Host: www.gxp.cc
Connection: Keep-Alive
Cookie: Hm_lvt_215e97a218ffb7efca4c7a50555823f2=1332254061446; Hm_lpvt_215e97a218ffb7efca4c7a50555823f2=1332254061446; PHPSESSID=d843f8b43bbff5779595043abae922f7; cnzz_a3161611=33;
sin3161611=; rtime=0; ltime=1332254061324; cnzz_eid=395044-1332239315-
接受:
HTTP/1.1 200 OK
Server: nginx/1.0.1
Date: Tue, 20 Mar 2012 14:43:09 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
X-Powered-By: PHP/5.2.17
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 7058
请问怎么能取到下载页面的源码。
|
|