本帖最后由 chslive 于 2014-11-3 15:54 编辑 #cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.12.0
Author:
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
;login address: http://abcs.com.cn/toplogin.asp
;等用户名:abcs密码:123456 邮箱:abcs@abcs.com
;抓包数据
;POST /toplogin.asp?action=login HTTP/1.1
;Accept: text/html, application/xhtml+xml, */*
;X-HttpWatch-RID: 95408-10481
;Referer: http://abcs.com.cn/toplogin.asp?typ=loginout
;Accept-Language: zh-Hans-CN,zh-Hans;q=0.8,en-US;q=0.5,en;q=0.3
;User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
;Content-Type: application/x-www-form-urlencoded
;Accept-Encoding: gzip, deflate
;Host: hibor.com.cn
;Content-Length: 58
;DNT: 1
;Connection: Keep-Alive
;Cache-Control: no-cache
;Cookie: ASP.NET_SessionId=bcu1ilr12mwu10qe5xzucwpx; ASPSESSIONIDSSRDBTRB=JGEAPDPCFHBFBNABMGKPDJIP; Hm_lpvt_d554f0f6d738d9e505c72769d450253d=1414948101; ASPSESSIONIDQQSCATSC=AJJCKGPCBOBEAKLNNNMFHMGG; ASPSESSIONIDQSQCDSTA=MEDALJPCBHCPNFCGCFBPIIFM; ASPSESSIONIDQQTCBTQB=MBOCBPPCLIACFELEPPKIEMCN; ASPSESSIONIDCQSCCTSC=IADLBGADGDMBBJPHNDFOHBFD; ASPSESSIONIDASRDBTSC=AAJIOMADHOCLGPEMHAJBEOGJ; ASPSESSIONIDSSSCCSQA=NMNCCACDGODDDLGOJFBGEHDF; ASPSESSIONIDAAAQCRRA=CPMOAHCDKJGIBLNOFBBHMLMB; ASPSESSIONIDASSABTSC=ACPCCPCDMPLOAFHDDFBANGHB; MBpwd=; MBname=; MBemail=; MBpermission=; CNZZDATA1752123=cnzz_eid%3D291912478-1414853602-%26ntime%3D1414947313; Hm_lvt_d554f0f6d738d9e505c72769d450253d=1414853991,1414916134; c=
;name=huibost&pwd=123456&checkbox=on&tijiao.x=28&tijiao.y=6
;程序
#include<ie.au3>
$oHTTP = ObjCreate("microsoft.xmlhttp")
$oHTTP.Open("post","http://abcs.com.cn/toplogin.asp?action=login",false)
$oHTTP.setRequestHeader("Cache-Control", "no-cache")
$oHTTP.setRequestHeader("Accept-Language", "zh-Hans-CN,zh-Hans;q=0.8,en-US;q=0.5,en;q=0.3")
$oHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
$oHTTP.setRequestHeader("Referer","http://abcs.com.cn/toplogin.asp")
$oHTTP.Send("nname=huibost&pwd=123456&checkbox=on&tijiao.x=28&tijiao.y=6")
$sReturn=BinaryToString($oHTTP.responseBody,4)
|