|
在打开这样的网址时
http://captcha.qq.com/getimage?aid=8000203 (注:TX的验证码图片)
返回的字节集得到很容易
返回的网页头得到也不难,得到的是这样的
HTTP/1.1 200 OK
Server: tencent http server
Accept-Ranges: bytes
Pragma: No-cache
Content-Length: 2737
Set-Cookie: verifysession=h00fcb2fd8e5ce38d2cfa1450beb757a50af1e3b9ec8084d3c8b612aab40d1c96c7518407001c5c1ede; PATH=/; DOMAIN=qq.com;
Connection: close
Content-Type: image/jpeg
但除了这个之外,还有一个提交的信息,抓包之后得到这样的内容
GET /getimage?aid=8000203 HTTP/1.1
Accept: application/x-shockwave-flash, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Host: captcha.qq.com
Connection: Keep-Alive
Cookie: adid=3358731; adSP=YVnaSJrs3NYC2IIlIhKwwrB4z8Oq1VDkPlUPmX+1bOA=_62948_326830_1290316176_; adVer=3073; pt2gguin=o0003358731; ptcz=2b1032d7986d46ce916c731b8ac8e75bf1317f017d3e4f5c9a08a5fd82248730; pvid=1661687452; ac=1,026,; o_cookie=3358731; pgv_pvid=9918538661; pgv_flv=10.0 r45; pgv_r_cookie=10112178879791; uin_cookie=3358731; euin_cookie=C6A8E109421245ABF386472BFBFBFF9AE4DB1079FA728D38; AREACODE=1|52|; PCCOOKIE=9eb4866fee5d71c1d189d938ca3e32a014b7a3d751f13de353120624b8166c95; PCCOOKIE2=2682196520; verifysession=h008abd31c4cdc391296f2cb7e6f7d9f5f23a7eec6cd17235d69f9afb0ac8664ae904d801ed5e3f8d28; pgv_info=pgvReferrer=&ssid=s5083844750
上面这些内容如何提取呢
在VB中可以使用 Inet.GetHeader 来直接得到,在易中如何实现呢
先谢谢了!!
|
|