jmeter java 請求 payload

來源:互聯網
上載者:User

標籤:google   window   cti   問題   page   type   request   --   ref   

1.註冊頁面抓包看見內容如下:

POST http://test.nnzhp.cn/bbs/forum.php?mod=post&action=edit&extra=&editsubmit=yes HTTP/1.1
Host: test.nnzhp.cn
Connection: keep-alive
Content-Length: 1311
Cache-Control: max-age=0
Origin: http://test.nnzhp.cn
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarySoNdnEOA6mQSVirW
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Referer: http://test.nnzhp.cn/bbs/forum.php?mod=post&action=edit&fid=170&tid=600&pid=1036&page=1
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8,en;q=0.6,zh-TW;q=0.4
Cookie: tjpctrl=1485314515635; RRZi_2132_saltkey=ma88N76D; RRZi_2132_lastvisit=1485244553; RRZi_2132_nofavfid=1; RRZi_2132_visitedfid=170; RRZi_2132_ulastactivity=c00dT0EhfCAtiXNvS8UvoKBwuC6VSOpa6jsgWf0TDi9LXJuSK243; RRZi_2132_auth=c34cSTtRuL2uA41GG1nXOTyim%2BkAYV%2Fj08vlew54IsExVcrcZBsEGF155mIEti1AEY3BdlLrmx8VItm3iRF%2Bq6Tp; RRZi_2132_lastcheckfeed=4403%7C1485309598; RRZi_2132_security_cookiereport=bca70J5fMXT2ie%2BCv682W6jKEZldW991neKXVOEv0rXExoLeepgB; RRZi_2132_sendmail=1; RRZi_2132_lip=205.132.175.177%2C1485314071; RRZi_2132_st_t=4403%7C1485314086%7Cee7b0c52d3d290137486bddea13e35e2; RRZi_2132_forum_lastvisit=D_170_1485314086; RRZi_2132_clearUserdata=forum; RRZi_2132_st_p=4403%7C1485314173%7C9fc5f19491381c27533c3000ef8e32df; RRZi_2132_viewid=tid_600; RRZi_2132_sid=vjla5f; RRZi_2132_editormode_e=1; RRZi_2132_checkpm=1; RRZi_2132_noticeTitle=1; RRZi_2132_smile=1D1; RRZi_2132_lastact=1485314179%09misc.php%09patch
x-auth-token: 146c12e64b94d7d22ef0d43e451410a2f0ecb8dc

------WebKitFormBoundarySoNdnEOA6mQSVirW
Content-Disposition: form-data; name="formhash"

2eafd547
------WebKitFormBoundarySoNdnEOA6mQSVirW
Content-Disposition: form-data; name="posttime"

1485314177
------WebKitFormBoundarySoNdnEOA6mQSVirW
Content-Disposition: form-data; name="delattachop"

0
------WebKitFormBoundarySoNdnEOA6mQSVirW
Content-Disposition: form-data; name="wysiwyg"

1
------WebKitFormBoundarySoNdnEOA6mQSVirW
Content-Disposition: form-data; name="fid"

170
------WebKitFormBoundarySoNdnEOA6mQSVirW
Content-Disposition: form-data; name="tid"

600
------WebKitFormBoundarySoNdnEOA6mQSVirW
Content-Disposition: form-data; name="pid"

1036
------WebKitFormBoundarySoNdnEOA6mQSVirW
Content-Disposition: form-data; name="page"

1
------WebKitFormBoundarySoNdnEOA6mQSVirW
Content-Disposition: form-data; name="subject"


------WebKitFormBoundarySoNdnEOA6mQSVirW
Content-Disposition: form-data; name="message"

qqqqqqqqqqqqqqqqqqqqqqqqqq
------WebKitFormBoundarySoNdnEOA6mQSVirW
Content-Disposition: form-data; name="usesig"

1
------WebKitFormBoundarySoNdnEOA6mQSVirW
Content-Disposition: form-data; name="delete"

1
------WebKitFormBoundarySoNdnEOA6mQSVirW
Content-Disposition: form-data; name="save"


------WebKitFormBoundarySoNdnEOA6mQSVirW--

 

2.看到request payload 是WebKitFormBoundary就頭疼,怎麼跟之前不同的

翻查了google,看不懂官方文檔,只能錄製了

原來是http request的implementation的問題,選擇java

然後參數名輸入delete,參數為1。逐個輸入就可以了

 

jmeter java 請求 payload

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.