Skip to content

[HttpClient] document how to get the effective URL of a response #15507

Closed
@stof

Description

@stof

The doc about dealing with redirects in HttpClient should mention $response->getInfo('url') which allows to get the effective URL of the response (and so if you call it after following the redirection, you get the URL after the redirection).

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