WpOrg\Requests\Auth
Basic::curl_before_send
Set cURL parameters before the data is sent
Метод класса: Basic{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Basic = new Basic(); $Basic->curl_before_send( $handle );
- $handle(resource|\CurlHandle) (обязательный) (передается по ссылке — &)
- cURL handle.
Код Basic::curl_before_send() Basic::curl before send WP 7.1
public function curl_before_send(&$handle) {
curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($handle, CURLOPT_USERPWD, $this->getAuthString());
}