本帖最后由 cutyourchicken 于 2010-11-17 03:09 编辑 POST /NetCafe/login.do HTTP/1.1
Accept: application/x-shockwave-flash, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Referer: https://192.168.1.150/NetCafe/login.jsp
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; QQPinyinSetup 614)
Host: 192.168.1.150
Content-Length: 59
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=34FA902342616207DFB8162F669F9261
userName=admin&signature=&rand=&password=72041012&retrieve=
POST代码是这样的:
$xmlhttp=ObjCreate("Microsoft.XMLHTTP")
$poststr="userName=admin&signature=&rand=&password=72041012&retrieve="
$xmlhttp.open("post","https://192.168.1.150/NetCafe/login.do",false)
$xmlhttp.setRequestHeader("Cache-Control", "no-cache")
$xmlhttp.setRequestHeader("Connection", "Keep-Alive")
$xmlhttp.setRequestHeader("Content-Length", "59")
$xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
$xmlhttp.setRequestHeader("Referer","https://192.168.1.150/NetCafe/login.jsp")
$xmlhttp.setRequestHeader("Cookie","JSESSIONID=34FA902342616207DFB8162F669F9261")
$xmlhttp.send($poststr)
联系QQ:282128645提供测试环境,大家多多帮忙哦 |