Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.3.0

Bug #20440 Put Request contains no body
Submitted: 2014-11-12 18:42 UTC
From: markusmarx Assigned: avb
Status: Closed Package: HTTP_Request2 (version 2.2.1)
PHP Version: 5.4.26 OS: Debian 3.14.15-2
Roadmaps: (Not assigned)    
Subscription  


 [2014-11-12 18:42 UTC] markusmarx (Markus Marx)
Description: ------------ Curl adapter does not send a body with PUT method. Test script: --------------- 1. set adapter to curl 2. set Method to PUT 3. add a request body 4. send Expected result: ---------------- A non empty body is received. Actual result: -------------- An empty body is received.

Comments

 [2015-06-20 17:38 UTC] avb (Alexey Borzov)
-Status: Open +Status: Feedback
Sorry for a long delay. Does it work properly if you set 'follow_redirects' option to false?
 [2015-06-20 19:36 UTC] avb (Alexey Borzov)
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: avb
Fixed this in https://github.com/pear/HTTP_Request2/commit/97e180cf35a3475f4185f898f78a88071f45e074 If PUT request ends up with a redirect when 'follow_redirects' is on, it will fail. If, however, no redirect happens the body will be sent properly. Digest auth won't work for PUT, obviosly.