lowcoupling
lowcoupling

Reputation: 2169

Webapp2 Redirect Method

I am trying to redirect a POST request from an Google App Engine Python Handler to another URL. The Problem is that it seems the method is changed to GET. Is there any way to set the POST method when redirecting?

Upvotes: 1

Views: 192

Answers (1)

voscausa
voscausa

Reputation: 11706

Use a 307 redirect. A 307 will not change the method of the redirect.

Wikipedia: 307 temporary redirect (provides a new URL for the browser to resubmit a GET or POST request)

Upvotes: 2

Related Questions