Requests_Proxy_HTTP::curl_before_send()
Set cURL parameters before the data is sent
{} It's a method of the class: Requests_Proxy_HTTP{}
No Hooks.
Return
null
. Nothing.
Usage
$Requests_Proxy_HTTP = new Requests_Proxy_HTTP(); $Requests_Proxy_HTTP->curl_before_send( $handle );
- $handle(resource) (required) (passed by reference — &)
- cURL resource
Changelog
Since 1.6 | Introduced. |
Code of Requests_Proxy_HTTP::curl_before_send() Requests Proxy HTTP::curl before send WP 6.0
public function curl_before_send(&$handle) { curl_setopt($handle, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_setopt($handle, CURLOPT_PROXY, $this->proxy); if ($this->use_authentication) { curl_setopt($handle, CURLOPT_PROXYAUTH, CURLAUTH_ANY); curl_setopt($handle, CURLOPT_PROXYUSERPWD, $this->get_auth_string()); } }