Requests_Auth_Basic::curl_before_send( resource $handle )

Set cURL parameters before the data is sent


Description Description


Parameters Parameters

$handle

(resource) (Required) cURL resource


Top ↑

Source Source

File: wp-includes/Requests/Auth/Basic.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.