[wp-hackers] HTTP Request API edge case

John Blackbourn johnbillion+wp at gmail.com
Wed Jul 15 19:01:53 UTC 2009


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.

Regards,
John.


More information about the wp-hackers mailing list