You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Gil Novak <Gi...@Verizon.Net> on 2010/04/29 02:00:22 UTC
jmeter uploading a file
I am testing an app that has a file upload feature, which works when I do it
manually. When I try to record it via the http proxy, the action fails.
What is it about the proxy that causes a modification of what its sniffing?
Replaying it fails also. I'm tried supplying the path, omitting it, moving
the file to the jmeter root, moving the file to the cwd, etc. The only
thing I can think of is that when I compare what JMeter sends in the
multipart post to what Fiddler sniffed when I do it manually, is that JMeter
adds two lines to each part that isn't there normally:
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="PROC"
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
AWUISubmitConvertLeadToTalentDupeCheck
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="submitType"
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Enter
-----------------------------7d159c1302d0y0
A normal sniffing of the multipart post request looks like this:
-----------------------------23805158906729
Content-Disposition: form-data; name="PROC"
AWUISubmitShortApplication
-----------------------------23805158906729
Content-Disposition: form-data; name="jobID"
8439573489527
-----------------------------23805158906729
Content-Disposition: form-data; name="viralBlast"
false
-----------------------------23805158906729
So, my questions are: Are the two additional lines (Content-Type, and
Content-Transfer-Encoding) per part what's causing the problem?
If so, how do I get rid of them? If not, any other ideas?
Thanks,
Gil Novak
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
RE: jmeter uploading a file
Posted by Viswanathan Arunachalam <v....@auckland.ac.nz>.
You need to provide the upload file details via
SendFiles With the Request :
File path parameter MIME Type
Cheers,
Vish
-----Original Message-----
From: Gil Novak [mailto:Gil.Novak@Verizon.Net]
Sent: Thursday, 29 April 2010 12:00 p.m.
To: 'JMeter Users List'
Subject: jmeter uploading a file
Importance: High
I am testing an app that has a file upload feature, which works when I do it
manually. When I try to record it via the http proxy, the action fails.
What is it about the proxy that causes a modification of what its sniffing?
Replaying it fails also. I'm tried supplying the path, omitting it, moving
the file to the jmeter root, moving the file to the cwd, etc. The only
thing I can think of is that when I compare what JMeter sends in the
multipart post to what Fiddler sniffed when I do it manually, is that JMeter
adds two lines to each part that isn't there normally:
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="PROC"
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
AWUISubmitConvertLeadToTalentDupeCheck
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="submitType"
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Enter
-----------------------------7d159c1302d0y0
A normal sniffing of the multipart post request looks like this:
-----------------------------23805158906729
Content-Disposition: form-data; name="PROC"
AWUISubmitShortApplication
-----------------------------23805158906729
Content-Disposition: form-data; name="jobID"
8439573489527
-----------------------------23805158906729
Content-Disposition: form-data; name="viralBlast"
false
-----------------------------23805158906729
So, my questions are: Are the two additional lines (Content-Type, and
Content-Transfer-Encoding) per part what's causing the problem?
If so, how do I get rid of them? If not, any other ideas?
Thanks,
Gil Novak
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org