Preserve POST variables during login redirect in GAE?
The general problem with capturing a POST and turning it into a GET is first that the query string on a GET has a browser-dependent limited size, and second that a POST may be form/multi-part (what to do with the uploaded file becomes an issue).
An approach that might work for you is to accept the POST and save the data, then redirect to a page that requires login, passing the Key(s) (or enough information to reconstruct them) in the query string. The handler for that URL then assumes successful login, and fixes up the saved data (say, to associate it with the logged-in user) as appropriate.
People who decide not to login will leave orphaned records, which you can clean up via a cron job.
in a form, I submit data to a python webapp handler (all Google App Engine based) using a HTTP POST request. In this script, I first check if the user is logged in and if not, I use users.create_login_url(...) to redirect the user first to the login page.
How can I ensure that after login the user is not just forwarded to my python script again, but that also the POST variables are preserved? The only way I found was turning all POST variables into URL parameters and adding it to the URL.
Is that possible at all?