Search code examples
pythongoogle-app-enginewebapp2

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?


Solution

  • 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)