一、以下是HTTPWATCH录制的HTTPRequest数据
POST /member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=1 HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, ……
Referer: http://bbs.gfan.com/forum.php
Accept-Language: zh-cn
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; ……)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: bbs.gfan.com
Content-Length: 109
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: pgv_si=s6847084544; Hm_lpvt_6790309a725fc338d4fe3efb72d4a6ea=1370165750;……
fastloginfield=username&username=abcd&password=e2fc714c4727ee9395f324cd2e7f331f&quickforward=yes&handlekey=ls
二、用web_custom_request()函数实现提交数据:
web_custom_request("gfan",
"Method=POST",
"URL=http://bbs.gfan.com/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes",
"body=fastloginfield=username&username=abcd&password=e2fc714c4727ee9395f324cd2e7f331f&quickforward=yes&handlekey=ls",
LAST);