https://issues.apache.org/bugzilla/show_bug.cgi?id=57188
Bug ID: 57188
Summary: HTTPSampler : PUT request with file is performed with
empty body when ParameterName is not empty
Product: JMeter
Version: 2.11
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
Assignee: [email protected]
Reporter: [email protected]
Created attachment 32191
--> https://issues.apache.org/bugzilla/attachment.cgi?id=32191&action=edit
Test plan with correct and incorrect requests
v.2.11
Steps:
1. set some ParameterName for attached file in HTTP request with Method: PUT
2. Run test, verify request text
Observed:
file is not send
---------------------------------------------------------------------
PUT http://172.29.0.15/SPC/123214/batch/145?channel=Twitter
PUT data:
[no cookies]
Request Headers:
Connection: keep-alive
AuthenticationToken:
RyFQpAwbvOunp25ZK3fa/nN/W/NxeF0XKzWr8XPR3JUCkXuqTgnG60hUs78pGk0itUE1o13UnXz0PjXM+gjXDCso13gU+mjV8APWukLW6KhXSX/XPdz1LUhlIM7/yCzxqW7st54uLgtuasqCw9FOzsaswO32H8VHiRMlLDlZCJ8=
Content-Type: application/x-zip-compressed
Content-Length: 0
Host: 172.29.0.15
User-Agent: Apache-HttpClient/4.2.6 (java 1.5)
-------------------------------------------------------------------
If Method is POST file is send:
--------------------------------------------------------
POST http://172.29.0.15/SPC/123214/batch/128?channel=Twitter
POST data:
--hjO9f0hp0ecbElbUGWv8EYa84Anb6r4TUm
Content-Disposition: form-data; name="dataFile"; filename="StaticData.zip"
Content-Type: application/x-zip-compressed
<actual file content, not shown here>
--hjO9f0hp0ecbElbUGWv8EYa84Anb6r4TUm--
[no cookies]
Request Headers:
Connection: keep-alive
AuthenticationToken:
RyFQpAwbvOunp25ZK3fa/nN/W/NxeF0XKzWr8XPR3JUCkXuqTgnG60hUs78pGk0itUE1o13UnXz0PjXM+gjXDCso13gU+mjV8APWukLW6KhXSX/XPdz1LUhlIM7/yCzxqW7st54uLgtuasqCw9FOzsaswO32H8VHiRMlLDlZCJ8=
Content-Type: application/x-zip-compressed
Content-Length: 20090
Host: 172.29.0.15
User-Agent: Apache-HttpClient/4.2.6 (java 1.5)
-------------------------------------------------------
--
You are receiving this mail because:
You are the assignee for the bug.