我想提交下边这些数据到目标服务器
POST /a.asp?tp=yes 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, */*
Referer: http://xxxx.xxxx.cn/index.asp
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; cafe8)
Host: xxxx.xxxx.cn
Content-Length: 39
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ASPSESSIONIDSQCCSATA=BOAPPFDBFEHINNICIOONFDAM&ps=30&ps=24&ps=23&qq=3&C1=ON
这些数据中 只有Cookie:的值是变的,该怎么写呢 ?
我用的是poststr 但不知道COOKIE这该怎么弄了 怎么获取当前的COOKIE呢
看了好多关于idhttp和idcookiemanager的资料 还是没弄明白怎么写请高手指点
POST /a.asp?tp=yes 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, */*
Referer: http://xxxx.xxxx.cn/index.asp
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; cafe8)
Host: xxxx.xxxx.cn
Content-Length: 39
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ASPSESSIONIDSQCCSATA=BOAPPFDBFEHINNICIOONFDAM&ps=30&ps=24&ps=23&qq=3&C1=ON
这些数据中 只有Cookie:的值是变的,该怎么写呢 ?
我用的是poststr 但不知道COOKIE这该怎么弄了 怎么获取当前的COOKIE呢
看了好多关于idhttp和idcookiemanager的资料 还是没弄明白怎么写请高手指点
HTTP/1.1 200 OK
Date: Fri, 26 Sep 2008 08:52:12 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Length: 344
Content-Type: text/html
Set-Cookie: ASPSESSIONIDQQDDBDAQ=OJMAPHJBCCJMJHKKINNODBFH; path=/
Cache-control: private这之后 COOKIE就变了