With the Symfony Http Client I create a HTTP request like this:
$client = HttpClient::create();
$response = $client->request('GET', 'www.mypage.com', [
'auth_basic' => ['user', '123'],
]);
dump($response);
The output is:
Symfony\Component\HttpClient\Response\CurlResponse {#1117 ▼
response_headers: []
http_code: 0
error: null
url: www.something.com
....
Now I try to output the url of that response:
dump($response->getContent());
But the output is null.
How can I get as an output the url www.something.com?