You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What we can do in Symfony is replace the "if" block on that line with: $host = \defined('INTL_IDNA_VARIANT_UTS46') ? idn_to_ascii($host, IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46) ?: strtolower($host) : strtolower($host);
Symfony version(s) affected: 4.4.4
Description
for domain 0-------------------------------------------------------------0.com raise InvalidArgumentException
How to reproduce
$http_client = HttpClient::create();
$response = $http_client->request('GET', 'http://0-------------------------------------------------------------0.com');
Possible Solution
Additional context
[Symfony\Component\HttpClient\Exception\InvalidArgumentException]
In HttpClientTrait.php line 446:
Unsupported host in "http://0-------------------------------------------------------------0.com/".
The text was updated successfully, but these errors were encountered: