Skip to content

Http POST request should follow 302 redirects #38413

@yizhepku

Description

@yizhepku

Currently, POST doesn't follow redirects even when followRedirects is set to True. This can be quite surprising for users. See dart-lang/http#157 .
A promising solution is to make followRedirects default to false when using POST and other methods, but still allows user to override this behavior.
The python requests library does this and it seems to work well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-io

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions