https://bz.apache.org/bugzilla/show_bug.cgi?id=60015
--- Comment #4 from [email protected] --- (In reply to Philippe Mouawad from comment #3) > (In reply to kaluramghelot89 from comment #2) > > Hi Philippe > > > > We had already tried using the Authorization header as well. Still we were > > facing the issue. > > > > I think the actual issue is that in case of PUT method there is no multipart > > request is being sent, as we do for POST method. And that is what might be > > causing the actual failure. > I don't understand as it works in my test with Http Mirror Server . > Did you try using HttpClient 3.1 ? > Thanks We have not tried with HttpClient 3.1. Although as a work around we are using the above mentioned cURL command using the OS Process Sampler. And are you sending multiple files with in your request? Also, would you please share the request that gets created when you are testing. In our case the request that is getting created is somewhat similar to this: ______________________________________________________________________________ PUT https://somehost/api/upload?project=projectname PUT data: <actual file content, not shown here> [no cookies] Request Headers: Connection: keep-alive Authorization: Basic cnV***************************NQ== Content-Type: multipart/form-data Content-Length: 0 Host: somehost User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_101) ______________________________________________________________________________ And what we want is : ______________________________________________________________________________ PUT /api/upload?project=projectname HTTP/1.1 Host: somehost Authorization: Basic cnV*****************************NQ== Cache-Control: no-cache Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW ------WebKitFormBoundary7MA4YWxkTrZu0gW Content-Disposition: form-data; name="file"; filename="" Content-Type: ------WebKitFormBoundary7MA4YWxkTrZu0gW Content-Disposition: form-data; name=""; filename="" Content-Type: ______________________________________________________________________________ -- You are receiving this mail because: You are the assignee for the bug.
