2014-07-16 19 views
1

由於&符號(&)的值而截斷了authenticity_token的以下值。由於和號存在,Jmeter將在兩個鍵中打破「authenticity_token」值

authenticity_token=CUYGx8Wsvc4wVrqdqBSB0ePSvIZnRfh1Qf/XOWnekQc= 

由於這個職位要求越來越失敗的JMeter

這得到了截去POST請求的HTTP格式:

enter image description here

相同POST請求的RAW格式:

POST http://abcdomain.com/punter/punteradmin/languages 

POST data: 
utf8=✓&authenticity_token=A7Fkebd2rYIyHF%26%2347%3Bn1Mm44p0iiRh%2BCRX4cTtVlrksHUU%3D&language[name]=Test Lang B&language[code]=ab-BB&commit=Add Language 

Cookie Data: 
$Version=0; _session_id=22795fce48a3f49d99b9d09a7a6aae07; $Path=/ 

Request Headers: 
Content-Length: 154 
Connection: close 
Content-Type: application/x-www-form-urlencoded 

回答

0

在您的POST請求中確保您簽入參數表表示令牌參數的Encode列。

enter image description here

+0

是的我正在那樣做 – Feroz