From ef6661a6281ae98ebd8473190ad0cbfd673c81ea Mon Sep 17 00:00:00 2001 From: dd32 Date: Thu, 15 Mar 2012 05:33:38 +0000 Subject: [PATCH] WP_HTTP: Send the body with custom method requests when using cURL. Fixes #18589 git-svn-id: http://svn.automattic.com/wordpress/trunk@20183 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-http.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index e044e9d8a..d4247fd9f 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -1054,6 +1054,8 @@ class WP_Http_Curl { break; default: curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, $r['method'] ); + if ( ! empty( $r['body'] ) ) + curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); break; }