Basic::curl_before_send( resource|CurlHandle $handle )

In this article

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());
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.