Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postman changes POST to http to a GET to https request and returns HTTP 405 error #11410

Open
1 task done
dinob68 opened this issue Nov 1, 2022 · 2 comments
Open
1 task done

Comments

@dinob68
Copy link

dinob68 commented Nov 1, 2022

Is there an existing issue for this?

  • I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

I found the reason but I am finding this to be very strange behavior in PostMan if not a bug

What I found in PostMan console (when my request returns 405) is that my POST request to http, gets redirected to GET request to https:

enter image description here

Investigating further, I find that you have to change this behavior by going to PostMan > your POST request > your request settings > and make sure you have turned ON "Follow original HTTP Method" setting like:

enter image description here

It is strange this this is by default OFF. I did not have to do any of this in SoapUI.

Steps To Reproduce

  1. issue a POST request to http requiring https
  2. it returns HTTP 405 error
  3. it should redirect to https POST
  4. but instead it redirects to https GET
  5. following original HTTP method should be default and not require going to request setting to turn On "Follow original HTTP Method"
  6. SoapUI works out of the box and issuing POST http to endpoint requiring https will return 200 OK and internally redirect to POST https without need to modify anything

Screenshots or Videos

screenshot are in the body

Operating System

Windows

Postman Version

10.0.41

Postman Platform

Postman App

Additional Context?

Strange setting requirement

@anudruth
Copy link

anudruth commented Feb 7, 2024

What setting in code is that toggle actually changing?

@yixiongngvsys
Copy link

One of my POST api always being redirected to GET HTTP method. When I tried on web, no issue. I have tried the solution provided by @dinob68 , it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants