WP_Http::
buildCookieHeader( $parsed_args );
$handle =
curl_init();
// cURL offers really easy proxy support.
$proxy =
new WP_HTTP_Proxy();
if ( $proxy->
is_enabled() &&
$proxy->
send_through_proxy( $url ) ) { curl_setopt( $handle, CURLOPT_PROXYTYPE, CURLPROXY_HTTP
);
curl_setopt( $handle, CURLOPT_PROXY,
$proxy->
host() );
curl_setopt( $handle, CURLOPT_PROXYPORT,
$proxy->
port() );
if ( $proxy->
use_authentication() ) { curl_setopt( $handle, CURLOPT_PROXYAUTH, CURLAUTH_ANY
);
curl_setopt( $handle, CURLOPT_PROXYUSERPWD,
$proxy->
authentication() );
} } $is_local =
isset( $parsed_args['local'
] ) &&
$parsed_args['local'
];
$ssl_verify =
isset( $parsed_args['sslverify'
] ) &&
$parsed_args['sslverify'
];
if ( $is_local ) { /** This filter is documented in wp-includes/class-wp-http-streams.php */