[wp-hackers] HTTP Request API edge case
Peter Westwood
peter.westwood at ftwr.co.uk
Thu Jul 16 08:44:00 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.
>
Maybe.
Technically the method is case-sensitive:
RFC 2616 HTTP/1.1 June 1999
5.1.1 Method
The Method token indicates the method to be performed on the
resource identified by the Request-URI. The method is case-sensitive.
More information about the wp-hackers
mailing list