diff --git a/tests/Guzzle/Tests/Http/Curl/CurlHandleTest.php b/tests/Guzzle/Tests/Http/Curl/CurlHandleTest.php index 3195bbcb..4608bdaf 100644 --- a/tests/Guzzle/Tests/Http/Curl/CurlHandleTest.php +++ b/tests/Guzzle/Tests/Http/Curl/CurlHandleTest.php @@ -477,6 +477,22 @@ class CurlHandleTest extends \Guzzle\Tests\GuzzleTestCase 'Content-Length' => '0', '!Transfer-Encoding' => null )), + // Send a POST request with empty post fields + array('POST', 'http://localhost:8124/post.php', null, array(), array( + CURLOPT_CUSTOMREQUEST => 'POST', + CURLOPT_HTTPHEADER => array ( + 'Expect:', + 'Host: localhost:8124', + 'User-Agent: ' . $userAgent + ) + ), array( + '_Accept' => '*', + '_Accept-Encoding' => '*', + 'Host' => '*', + 'User-Agent' => '*', + 'Content-Length' => '0', + '!Transfer-Encoding' => null + )), // Send a PATCH request array('PATCH', 'http://localhost:8124/patch.php', null, 'body', array( CURLOPT_INFILESIZE => 4,