Uncaught PHP Exception Symfony\Component\HttpClient\Exception\ClientException: code example
Example: httpclient add authorization header symphony
$response = $client->request('GET', 'https://...', [
'auth_basic' => ['the-username', 'the-password'],
// ...
]);