Answer the question
In order to leave comments, you need to log in
What HTTP headers are required when using Proxy with Basic authentication?
$curlClient = new HttpBrowser(HttpClient::create());
$response = $curlClient->request('GET', $url, [
'headers' => [
'Proxy' => '10.10.10.10:3128',
'Proxy-Authorization' => 'Basic user:pass'
],
]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question