Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Request sent as POST appears as GET on API Gateway

Not applicable

I am running into a weird problem.

I have a proxy with a base url and two conditional flows. The conditions are based on just the verb POST and GET. When i submit a request from say Postman as POST the request comes in into the edge gateway as a GET and hence gets routed to the wrong conditional flow. I can see that the POST is now a GET in the trace.

I thought that this is an issue with Postman and tried using CURL as well as SOAP UI. In all cases the request shows up as GET in the trace.

Workaround: When i use https instead of http the POST requests come in as POST. This happens only when consumer sends a request over http.

0 5 714
5 REPLIES 5