[wp-hackers] HTTP Request API edge case
Matt Mullenweg
m at mullenweg.com
Wed Jul 15 19:09:27 UTC 2009
On 7/15/2009 12:01 PM, John Blackbourn wrote:
> Just a quick heads up for anyone who may be using the POST method with
> the wp_remote_request() function in WordPress, you must ensure that
> POST is written in uppercase as the cURL transport method will fail
> otherwise (at the switch statement in WP_Http_Curl::request). Other
> transport methods may suffer from this too, I haven't checked.
>
> Bit of an edge case I know but I thought I would put it out there.
Worth a patch on Trac to strtoupper to protect anyone in the future.
--
Matt Mullenweg
http://ma.tt | http://wordpress.org | http://automattic.com
More information about the wp-hackers
mailing list