Index: http.php
===================================================================
--- http.php	(revision 8547)
+++ http.php	(working copy)
@@ -4,6 +4,8 @@
  *
  * Will eventually replace and standardize the WordPress HTTP requests made.
  *
+ * @link http://trac.wordpress.org/ticket/4779 HTTP API Proposal
+ *
  * @package WordPress
  * @subpackage HTTP
  * @since 2.7
@@ -666,9 +668,9 @@
 		$context = stream_context_create($arrContext);
 
 		if ( !defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG ) )
-			$handle = @fopen($url, 'r');
+			$handle = @fopen($url, 'r', false, $context);
 		else
-			$handle = fopen($url, 'r');
+			$handle = fopen($url, 'r', false, $context);
 
 		if ( ! $handle)
 			return new WP_Error('http_request_failed', sprintf(__('Could not open handle for fopen() to %s'), $url));
@@ -794,6 +796,7 @@
 
 		list($theHeaders, $theBody) = explode("\r\n\r\n", $strResponse, 2);
 		$theHeaders = WP_Http::processHeaders($theHeaders);
+		$theBody = http_chunked_decode($theBody);
 
 		$theResponse = array();
 		$theResponse['code'] = $info['response_code'];
