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&#xd;
Content-Disposition: form-data; name=&quot;XMLFile&quot;&#xd;
Content-Type: text/plain; charset=ISO-8859-1&#xd;
Content-Transfer-Encoding: 8bit&#xd;
&#xd;
contract.ContractImportPanel&#xd;
-----------------------------7d159c1302d0y0&#xd;
Content-Disposition: form-data; name=&quot;refcmd&quot;&#xd;
Content-Type: text/plain; charset=ISO-8859-1&#xd;
Content-Transfer-Encoding: 8bit&#xd;
&#xd;
ContractUpload&#xd;
-----------------------------7d159c1302d0y0&#xd;
Content-Disposition: form-data; name=&quot;targetStoreId&quot;&#xd;
Content-Type: text/plain; charset=ISO-8859-1&#xd;
Content-Transfer-Encoding: 8bit&#xd;
&#xd;
556&#xd;
-----------------------------7d159c1302d0y0&#xd;
Content-Disposition: form-data; name=&quot;filename&quot;;
filename=&quot;test4.xml&quot;&#xd;
Content-Type: text/xml&#xd;
Content-Transfer-Encoding: binary&#xd;
&#xd;
&lt;actual file content, not shown here&gt;&#xd;
-----------------------------7d159c1302d0y0--&#xd;
</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]

Reply via email to