How to send a file with HTTP Request in Jmeter
Hi,
I have the latest version of jmeter downloaded.( Version 2.2.3)
I am new to jmeter.
I need to send a binary file with the HTTP Request Post .
When i tried this i get the following error : Response Code 500 ( my request is not successful.
I filled the HTTP Request form of jmeter as below:
-------------------------------------------------------------------------------------------------------------------------------------------
File Name: Path of the file to send.
MIME : application/octet-stream
value: file name.
-------------------------------------------------------------------------------------------------------------------------------------------------
When I captured the response in wireshark i get the following response:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hypertext Transfer Protocol
POST /skavaea/emailadaptor/pop3;jsessionid=76853F9CBDFD7E27A67901417D75E4DC HTTP/1.1\r\n
Request Method: POST
Request URI: /skavaea/emailadaptor/pop3;jsessionid=76853F9CBDFD7E27A67901417D75E4DC
Request Version: HTTP/1.1
Connection: keep-alive\r\n
Content-Type: multipart/form-data; boundary=---------------------------7d159c1302d0y0\r\n
Content-Length: 618
User-Agent: Java/1.5.0_12\r\n
Host: server17.skavamail.com\r\n
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2\r\n
-------------------------------------------------------------------------------------------------------------------------------------------------------
- The size of the file which i attached with the http Request differs from the response which i get from wireshark. (Content-Length: 618 bytes, but my file size is 202 bytes)
Can anyone help me in this regard.
|