p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Expert One-on-One J2EE Design and Development (http://p2p.wrox.com/forumdisplay.php?f=40)
-   -   How to send a file with HTTP Request in Jmeter (http://p2p.wrox.com/showthread.php?t=63215)

munees October 25th, 2007 08:08 AM

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.






glinius@live.com April 16th, 2014 04:29 AM

Looking into response headers of your server I can see
Quote:

Accept: text/html, image/gif, image/jpeg
And as far as I understand you're trying to send
Quote:

MIME : application/octet-stream
So I would expect that the application under test would reject your upload request.

See Performance testing: Upload and Download Scenarios with Apache JMeter for how to correctly construct and send a file upload request including MIME type bit.

SarahFrancis April 16th, 2014 05:32 AM

Premium Pure Garcinia Cambogia – Thigh time to pamper yourself !
 
If you wish to look your best then make use of Premium Pure Garcinia Cambogia. This is the best weight loss supplement that gets you slim figure without any side effects and without any issues. So you must give this a try so that losing weight can become easier.
https://soundcloud.com/groups/premiu...ily-and-faster


All times are GMT -4. The time now is 03:52 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.