这里写问题具体描述
https://github.com/walkor/workerman#use-socks5-proxy
如何设置代理ip的帐号和密码呢
'http' => array( 'proxy' => 'tcp://192.168.0.2:3128', //这里设置你要使用的代理ip及端口号 'request_fulluri' => true, 'header' => "Proxy-Authorization: Basic $auth", ), 想这样使用代理ip
$client = new AsyncTcpConnection('ws://0.0.0.0:2566'); $client->headers = [ 'http' => [ 'request_fulluri' => true, 'proxy' => 'ip:port', 'header' => [ 'Proxy-Switch-Ip' => 'yes', 'Proxy-Authorization' => 'Basic ' . base64_encode('user:pass') ], ] ]; 这样使用代理ip无效,请教下怎样设置
https://github.com/walkor/workerman#use-socks5-proxy
如何设置代理ip的帐号和密码呢
'http' => array(
'proxy' => 'tcp://192.168.0.2:3128', //这里设置你要使用的代理ip及端口号
'request_fulluri' => true,
'header' => "Proxy-Authorization: Basic $auth",
),
想这样使用代理ip
$client = new AsyncTcpConnection('ws://0.0.0.0:2566');
$client->headers = [
'http' => [
'request_fulluri' => true,
'proxy' => 'ip:port',
'header' => [
'Proxy-Switch-Ip' => 'yes',
'Proxy-Authorization' => 'Basic ' . base64_encode('user:pass')
],
]
];
这样使用代理ip无效,请教下怎样设置