连接需要哪个 HTTP headers 抛出具有基本身份验证的代理?

Which HTTP headers needed for connection throw Proxy with Basic Authentication?

$curlClient = new HttpBrowser(HttpClient::create());
$url        = 'http://example.com';

$response   = $curlClient->request('GET', $url, [
            'headers' => [
                'Proxy' => '10.10.10.10:3128',
                'Proxy-Authorization' => 'Basic user:pass'
            ],
        ]);

我尝试使用基本身份验证通过代理连接到 example.com。

Curl 中的类似命令看起来像

curl -x 10.10.10.10:3128 --proxy-user user:pass -i http://example.com

我需要发送什么headers?

Symfony 5 中的代理服务器应该配置为添加参数 proxy 和正确的可选(代理用户、代理密码)、代理 IP、代理端口

        $curlClient     = new HttpBrowser(HttpClient::create(
        [
            'proxy' => 'http://proxy_username:proxy_password@proxy_ip:proxy_port'
        ]
    ));
$url            = 'http://example.com';

$response       = $curlClient->request('GET', $url);