postman-app-support icon indicating copy to clipboard operation
postman-app-support copied to clipboard

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

Open dinob68 opened this issue 3 years ago • 2 comments

Is there an existing issue for this?

  • [X] 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

dinob68 avatar Nov 01 '22 18:11 dinob68

What setting in code is that toggle actually changing?

anudruth avatar Feb 07 '24 00:02 anudruth

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.

yixiongngvsys avatar Apr 22 '24 07:04 yixiongngvsys