Requests_Auth_Basic::curl_before_send()
最后更新于:2021-11-26 00:28:23
Requests_Auth_Basic::curl_before_send( resource$handle)Set cURL parameters before the data is sent
参数
- $handle
-
(resource) (Required) cURL resource
源文件
文件: gc-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());
}