W3cubDocs

/WordPress

Basic::curl_before_send( resource|CurlHandle $handle )

Set cURL parameters before the data is sent

Parameters

$handleresource|CurlHandlerequired
cURL handle

Source

public function curl_before_send(&$handle) {
	curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
	curl_setopt($handle, CURLOPT_USERPWD, $this->getAuthString());
}

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wporg-requests-auth-basic/curl_before_send