Requests_Auth_Basic::curl_before_send() WordPress Method
The Requests_Auth_Basic::curl_before_send() method is used to prepare the cURL request before it is sent. This includes setting the correct headers and authentication parameters.
Requests_Auth_Basic::curl_before_send( resource $handle ) #
Set cURL parameters before the data is sent
Contents
Parameters
- $handle
(resource)(Required)cURL resource
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()); }
Expand full source codeCollapse full source codeView on TracView on GitHub