postman-app-support
postman-app-support copied to clipboard
Postman changes POST to http to a GET to https request and returns HTTP 405 error
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:
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:
It is strange this this is by default OFF. I did not have to do any of this in SoapUI.
Steps To Reproduce
- issue a POST request to http requiring https
- it returns HTTP 405 error
- it should redirect to https POST
- but instead it redirects to https GET
- following original HTTP method should be default and not require going to request setting to turn On "Follow original HTTP Method"
- 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
What setting in code is that toggle actually changing?
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.

