Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Post with redirected response in HttpClient 5.4.5 throws a 408 error (worked properly on HttpClient 5.4.3) #45709

Copy link
Copy link
Closed
@samuelvi

Description

@samuelvi
Issue body actions

Symfony version(s) affected

5.4.5

Description

When an HttpClient post request is made, and the response returns a redirection, a 408 error is thrown by HttpClient.
This works properly until 5.4.3 version but not in version 5.4.5

How to reproduce

// $url is a vble like http://my.domain1:8000
// $headers[] = 'Content-Type: application/x-www-form-urlencoded';
// $params is an array form
$client->request('POST', $url, ['headers' => $headers, 'body' => $params]);

Error given:
HTTP/1.1 408 Request Timeout returned for "..." . (Symfony\Component\HttpClient\Exception\ClientException)

Note the post will be made to an http scheme and redirected to another url, with a different subdomain (http scheme as well), but that is not the issue because works properly in 5.4.3

Possible Solution

No response

Additional Context

No response

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.