Closed dickens7 closed 5 years ago
$client->request('GET', '/', ['proxy' => 'http://localhost:8125']);
$client->request('GET', '/', [ 'proxy' => [ 'http' => 'tcp://localhost:8125', // Use this proxy with "http" 'https' => 'tcp://localhost:9124', // Use this proxy with "https", 'no' => ['.mit.edu', 'foo.com'] // Don't use a proxy with these ] ]);
已修复,请使用最新版试一下
如下设置 proxy 无效
以数组的形式设置代理可以正常生效