RestfulService::setProxy
Set proxy settings for this RestfulService instance
Signature
public function setProxy(string
$proxy,
[integer
$port = 80,
[string
$user = "",
[string
$password = "",
[boolean
$socks = false]]]] )
Parameters
$proxy
— string- The URL of the proxy to use.
$port
— integer- Proxy port
$user
— string- The proxy auth user name
$password
— string- The proxy auth password
$socks
— boolean- Set true to use socks5 proxy instead of http