jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 62158] New: httpClient4 fails to upload files
Date Mon, 05 Mar 2018 18:10:24 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=62158

            Bug ID: 62158
           Summary: httpClient4 fails to upload files
           Product: JMeter
           Version: 3.1
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: jechen@tesla.com
  Target Milestone: ---

Created attachment 35751
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35751&action=edit
httpClient4 upload file failed

We are using HTTP Request to upload a file (xlsx) during a request, it works
with the following protocols:

- Java
- HttpClient3.1

But fails with:

- HttpClient4

But all of our tests are using HttpClient4, so we really need this to work.

I tried all sorts of combinations found online, but none really helped.

The MIME type is also correctly set to:
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

POST data:
--7lLvirYn9fvnG85ZA36Uk2d5ppcquGdlN
Content-Disposition: form-data; name="files"; filename="VinList-1.xlsx"
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

<actual file content, not shown here>
--7lLvirYn9fvnG85ZA36Uk2d5ppcquGdlN--


Still fails.

It seems to be related to using this protocol with the xlsx format. 

Please look into and fix this issue.
Jesse

Attached is the UI setup in JMeter for this test, and error received.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message