public function setProxy ($proxy_url, $socks5 = false)
	{
		curl_setopt($this->ch, CURLOPT_PROXY, $proxy_url);

		//set proxy to use socks5
		if ($socks5)
		{
			curl_setopt($this->ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
		}
	}
public function setProxy ($proxy_url, $socks5 = false)
	{
		curl_setopt($this->ch, CURLOPT_PROXY, $proxy_url);

		//set proxy to use socks5
		if ($socks5)
		{
			curl_setopt($this->ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
		}
	}
public function setProxy ( $ proxy_url , $ socks5 = false ) { curl_setopt ( $ this -> ch , CURLOPT_PROXY , $ proxy_url ) ; //set proxy to use socks5 if ( $ socks5 ) { curl_setopt ( $ this -> ch , CURLOPT_PROXYTYPE , CURLPROXY_SOCKS5 ) ; } }
Set proxy to use for each curl request

@param string  $proxy_url
@param boolean $socks5 whether to use socks5 [=false]

@access public
Set proxy to use for each curl request