WordPress at Your Fingertips
function is not described

Requests_Auth_Basic::curl_before_send() public WP 1.0

Set cURL parameters before the data is sent

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

No Hooks.


null. Nothing.


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

Code of Requests_Auth_Basic::curl_before_send() WP 5.7.2

public function curl_before_send(&$handle) {
	curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
	curl_setopt($handle, CURLOPT_USERPWD, $this->getAuthString());