Requests_Auth_Basic::curl_before_send( resource $handle )
Set cURL parameters before the data is sent
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()); }
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_auth_basic/curl_before_send