Requests_Auth_Basic::curl_before_send

Advertisement

Summery Summery

Set cURL parameters before the data is sent

Syntax Syntax

Requests_Auth_Basic::curl_before_send( resource $handle )

Parameters Parameters

$handle

(resource) (Required) cURL resource

Source Source

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

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.