初識web_custom_request

 

一、以下是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);

 

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章