Note that there are some explanatory texts on larger screens.

plurals
  1. POApache Jmeter ignoring post body
    primarykey
    data
    text
    <p>I have a problem emulating a Http request in JMeter.</p> <p>The basic task is to make JMeter emulate a request made in firefox, and then use that as the basis of a performance test. However, i am having problems getting JMeter to include the post-header body.</p> <p>Using fiddler, i recorded the request from firefox, which looks something like this.</p> <pre><code>POST http://*****:8001/XMLServlet?action=send HTTP/1.1 Host: ***** User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive Referer: http://*****:8001/XMLServlet Cookie: JSESSIONID=YpvCQGvFWshb6yyNsZvWZzHLLknNMpXRJ36vR7p0jxSp41Q3zlbj!-409403047 Content-Type: multipart/form-data; boundary=---------------------------491299511942 Content-Length: 3125 -----------------------------491299511942 Content-Disposition: form-data; name="find"; filename="2010100010427.XML" Content-Type: text/xml &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE DDT PUBLIC "*****" "*****"&gt; &lt;Some XML file/&gt; -----------------------------491299511942 Content-Disposition: form-data; name="submit" Send -----------------------------491299511942-- </code></pre> <p>I made a login request in JMeter which works fine, but the actual post isn't behaving as expected.</p> <p>I am using the "Send file with request" option to send the file, i have chosen the POST method, and in Post Body(raw) i have added</p> <pre><code>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Host: ***** Connection: keep-alive Referer: http://*****:8001/XMLServlet </code></pre> <p>I would expect this to be included in the final request, but when i look at fiddler after executing fiddler, this is the result:</p> <pre><code>POST http://*****:8001/XMLServlet?action=send HTTP/1.1 Connection: keep-alive Cookie: JSESSIONID=LdyTQGsGzg0bSvbTKhF3grPhBYTKnY2TJ3CzLdB3Fwp8K7r2z2zN!-409403047 Content-Length: 2034 Content-Type: multipart/form-data; boundary=_bm2tmf-3Nv071ZvyhFKaWOc4RixWE_dNyLk Host: *****:8001 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.2.1 (java 1.5) --_bm2tmf-3Nv071ZvyhFKaWOc4RixWE_dNyLk Content-Disposition: form-data; name="find"; filename="2010100000484.XML" Content-Type: text/xml Content-Transfer-Encoding: binary &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE DDT PUBLIC "*****" "http://*****/sad.dtd"&gt; &lt;Some XML file/&gt; --_bm2tmf-3Nv071ZvyhFKaWOc4RixWE_dNyLk-- </code></pre> <p>Why is JMeter ignoring the Post Body? And more importantly: How do i fix it? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload