如何POST数据到目标服务器
我想提交下边这些数据到目标服务器
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的资料 还是没弄明白怎么写
请高手指点