WordPress at a glance
function is not described

Requests_Proxy_HTTP::curl_before_send() public WP 1.6

Set cURL parameters before the data is sent

{} It's a method of the class: Requests_Proxy_HTTP{}

No Hooks.

Return

Null. Nothing.

Usage

$Requests_Proxy_HTTP = new Requests_Proxy_HTTP();
$Requests_Proxy_HTTP->curl_before_send( $handle );
$handle(resource) (required) (passed by reference — &)
cURL resource

Changelog

Since 1.6 Introduced.

Code of Requests_Proxy_HTTP::curl_before_send() WP 5.5.1

<?php
public function curl_before_send(&$handle) {
	curl_setopt($handle, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
	curl_setopt($handle, CURLOPT_PROXY, $this->proxy);

	if ($this->use_authentication) {
		curl_setopt($handle, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
		curl_setopt($handle, CURLOPT_PROXYUSERPWD, $this->get_auth_string());
	}
}