精易论坛

标题: 易语言get方式下载软件疑问? [打印本页]

作者: 蜕变阳光    时间: 2013-9-8 09:24
标题: 易语言get方式下载软件疑问?
例如天空软件站的软件,为什么会自动又发了一个GET请求,请求的地址就是下载文件的地址,我怎么才能做一个下载器把这个地址提取出来

360截图20130908092201484.jpg (58.54 KB, 下载次数: 0)

360截图20130908092201484.jpg

作者: 蜕变阳光    时间: 2013-9-8 09:24
点击下载按钮后我抓的包
作者: 阿贤    时间: 2013-9-8 09:26
发包或地址
作者: 蜕变阳光    时间: 2013-9-8 09:37
阿贤 发表于 2013-9-8 09:26
发包或地址

我点击百度影音下载按钮

抓到的包

包的内容如下:第一个提交的包
GET /index.php?ac=count&id=15596&webid=2 HTTP/1.1
x-requested-with: XMLHttpRequest
Accept-Language: zh-cn
Referer: http://www.skycn.com/soft/shipin.html
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.2)
Host: www.skycn.com
Connection: Keep-Alive
Cookie: Hm_lvt_75cb9d2f4eca793992a08708694c3478=1378600984,1378601868,1378602194,1378603206; Hm_lpvt_75cb9d2f4eca793992a08708694c3478=1378603213; bdshare_firstime=1378559520703

第一次提交的地址返回两个包
第一个返回的
HTTP/1.1 200 OK
Set-Cookie: BAIDUID=9799E4769C532497499901CFD4BFD3FF:FG=1; max-age=31536000; expires=Mon, 08-Sep-14 01:20:10 GMT; domain=.hao123.com; path=/; version=1
P3P: CP=" OTI DSP COR IVA OUR IND COM "
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Content-Encoding: gzip
第二个返回的
HTTP/1.1 200 OK
Cache-Control: private, max-age=0, no-cache
Pragma: no-cache
Content-Type: image/gif
X-Content-Type-Options: nosniff
Connection: Keep-Alive
Content-Length: 43
Date: Sun, 08 Sep 2013 01:20:10 GMT
Server: apache


然后自动提交第二个包(这也是我想知道的这次提交地址他是怎么判断提交到哪里)
GET /hao123-soft-online-bcs/soft/B/2013-09-03_BaiduPlayer3a_100.exe HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://www.skycn.com/soft/shipin.html
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.2)
Host: download.skycn.com
Connection: Keep-Alive
Cookie: Hm_lvt_75cb9d2f4eca793992a08708694c3478=1378600984,1378601868,1378602194,1378603206; Hm_lpvt_75cb9d2f4eca793992a08708694c3478=1378603213


返回
HTTP/1.1 200 OK
Server: JSP2/1.0.16
Date: Sun, 08 Sep 2013 01:20:10 GMT
Content-Type: application/octet-stream
Connection: close
Content-Length: 20617216
Accept-Ranges: bytes
Last-Modified: Tue, 03 Sep 2013 05:59:50 GMT
Expires: Mon, 09 Sep 2013 06:33:22 GMT
x-bs-version: B7B998D290B5927D148104720C451018
ETag: 348ec4d4da132178b6dbe952d14fac9f
x-bs-request-id: MTAuMzYuOTcuMzE6ODA4MDoyMDgxNTE5ODE2OjA2L1NlcC8yMDEzIDE0OjMzOjIyIA==
Content-Disposition: attachment; filename="2013-09-03_BaiduPlayer3a_100.exe"
x-bs-meta-crc32: 63289410
Content-MD5: 348ec4d4da132178b6dbe952d14fac9f
x-bs-client-ip: MTI1Ljc2LjI1MS43Nw==
MZ






baidu.jpg (15.83 KB, 下载次数: 0)

点击下载

点击下载

bao.jpg (22.59 KB, 下载次数: 3)

抓到的包

抓到的包

作者: 月光族    时间: 2013-9-8 09:40
路过不懂
作者: 阿贤    时间: 2013-9-8 10:56
地址都没法访问

作者: Farmer°    时间: 2013-9-8 12:17
下载都是GET的 - -
真实下载地址应该是有文件数据的
作者: 西瓜皮    时间: 2013-9-8 12:39
找真实地址。会有文件名等
作者: 班德荣    时间: 2013-9-8 12:45
我也想知道
作者: 御风软件    时间: 2013-9-8 13:05
应该在第一次GET的返回协议或网页源码中包含下载地址

还有,用httpwatch抓包吧
作者: 694336034    时间: 2013-9-8 13:54
路过,表示帮不了你,我也不会




欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4