jmeter java 请求 payload
Posted AlamZ
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jmeter java 请求 payload相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章