WpOrg\Requests\Auth
Basic::curl_before_send
Set cURL parameters before the data is sent
Method of the class: Basic{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Basic = new Basic(); $Basic->curl_before_send( $handle );
- $handle(resource|\CurlHandle) (required) (passed by reference — &)
- cURL handle.
Basic::curl_before_send() Basic::curl before send code WP 7.0
public function curl_before_send(&$handle) {
curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($handle, CURLOPT_USERPWD, $this->getAuthString());
}