Skip to content

symfony/http-client idn_to_ascii raise exception for some domain #35852

Closed
@warwar

Description

@warwar

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/".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions