https://issues.apache.org/bugzilla/show_bug.cgi?id=49537
Summary: Got exceptions while recording upload file use JMeter
Product: JMeter
Version: Nightly (Please specify date)
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: blocker
Priority: P2
Component: HTTP
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=25677)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25677)
this is the jmx file
Hi,
When I using HTTP Proxy Server to record the operation of uploading a file, I
got below exceptions from my application server:
"java.io.IOException: Malformed line after content
type:Content-Transfer-Encoding: 8bit"
But, I can upload the same file manually.
Below lines are from the JMeter result file:
<method class="java.lang.String">POST</method>
<queryString
class="java.lang.String">-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="XMLFile"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

contract.ContractImportPanel
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="refcmd"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

ContractUpload
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="targetStoreId"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

556
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="filename";
filename="test4.xml"
Content-Type: text/xml
Content-Transfer-Encoding: binary

<actual file content, not shown here>
-----------------------------7d159c1302d0y0--
</queryString>
and these lines were captured by another proxy tool:
-----------------------------7dab2a100736
Content-Disposition: form-data; name="XMLFile"
contract.ContractImportPanel
-----------------------------7dab2a100736
Content-Disposition: form-data; name="refcmd"
ContractUpload
-----------------------------7dab2a100736
Content-Disposition: form-data; name="targetStoreId"
556
-----------------------------7dab2a100736
Content-Disposition: form-data; name="filename"; filename="C:\test3.xml"
Content-Type: text/xml
The attachment is my jmx file.
Nightly build version: jakarta-jmeter-r882651
Thanks!
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]