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

Bug #7922 content-type is removed on mistake
Submitted: 2006-06-16 12:35 UTC
From: ilia_kantor at webamg dot com Assigned: avb
Status: Closed Package: HTTP_Request (version 1.3.0)
PHP Version: 5.1.4 OS: Gentoo Linux
Roadmaps: (Not assigned)    
Subscription  


 [2006-06-16 12:35 UTC] ilia_kantor at webamg dot com (Ilia)
Description: ------------ If I setMethod("PUT") and provide content-type, then _build_request removes content-type from request. POST works fine, but PUT is needed for webservices!

Comments

 [2006-06-16 14:25 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-06-16 15:04 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-10-08 18:27 UTC] william at sqlcoders dot com (william gogan)
for anyone who's been annoyed by this bug, as it still seems to be in the current distro, the fix is to change line 765 to (HTTP_REQUEST_METHOD_POST == $this->_method && empty($this->_postData) && empty($this->_postFiles))) { (was (HTTP_REQUEST_METHOD_POST != $this->_method && empty($this->_postData) && empty($this->_postFiles))) { ).. it's just that first ! that should be a =
 [2006-10-10 19:33 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!