Set cURL parameters before the data is sent
Parameters
$handle
resource|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.