Skip to content

Redirection of a POST request turns into a GET #6627

@Chewie69006

Description

@Chewie69006

Hi !

I'm trying to make a POST call to a server with a HTTP scheme.
My server is redirecting me with a 301 response code, giving me the same URL in HTTPS.

But the newer request is now a GET request, failing because my backend doesn't handle this endpoint with a GET method.

Sorry, I can't attach a log, but :

Tested with okhttp:4.8.1 on Android 11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug in existing code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions