### Eclipse Workspace Patch 1.0
#P wordpress-trunk
Index: wp-includes/class-http.php
===================================================================
--- wp-includes/class-http.php	(revision 17551)
+++ wp-includes/class-http.php	(working copy)
@@ -1147,15 +1147,18 @@
 		// themselves... Although, it is somewhat pointless without some reference.
 		do_action_ref_array( 'http_api_curl', array(&$handle) );
 
+		$theResponse = curl_exec( $handle );
+		$result = apply_filters( 'curl_transport_exec', array( false, $theResponse, $r ), $handle );
+		if ( $result && is_array( $result ) && array_shift( $result ) && 2 === count( $result ) ) {
+			list( $theResponse, $r ) = $result;
+		}
+
 		// We don't need to return the body, so don't. Just execute request and return.
 		if ( ! $r['blocking'] ) {
-			curl_exec( $handle );
 			curl_close( $handle );
 			return array( 'headers' => array(), 'body' => '', 'response' => array('code' => false, 'message' => false), 'cookies' => array() );
 		}
 
-		$theResponse = curl_exec( $handle );
-
 		if ( !empty($theResponse) ) {
 			$headerLength = curl_getinfo($handle, CURLINFO_HEADER_SIZE);
 			$theHeaders = trim( substr($theResponse, 0, $headerLength) );
