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.
Return
Null. Nothing.
Usage
$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() Requests Auth Basic::curl before send WP 5.6.2
public function curl_before_send(&$handle) {
curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($handle, CURLOPT_USERPWD, $this->getAuthString());
}