Skip to content

[HttpClient] Calculate request content-length #45260

Closed
@ro0NL

Description

@ro0NL

Description

See phpro/soap-client#416 for background.

It would be nice if HttpClient calculates a default request content-length header.

I think generally the more http details we provide, the better.

Another option/behavior could be to force re-calculate an existing content-length header as httplug does: https://github.com/php-http/curl-client/blob/2ed4245a817d859dd0c1d51c7078cdb343cf5233/src/Client.php#L346

But perhaps we should produce a log once we change the user value.

Example

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