Uses
Uses | Description |
---|---|
wp-includes/Requests/Auth/Basic.php: Requests_Auth_Basic::getAuthString() | Get the authentication string (user:pass) |
Set cURL parameters before the data is sent
(resource) (Required) cURL resource
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–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_auth_basic/curl_before_send