What is the preferred way to redirect a request to Pylons without losing form data?

I am trying to redirect / send a Pylons request. The problem with using redirect_to is that the form data is deleted. I need to keep POST form data intact, as well as all request headers.

Is there an easy way to do this?

+4
source share
1 answer

Retrieving data from POST depends on how the web browser sends the data. When a web browser receives a redirect, it does not retransmit this data. One solution would be to URL-encode the data you want to save and use it with GET. In the worst case scenario, you can always add the data you want to save to the session and transfer it that way.

+2
source

Source: https://habr.com/ru/post/1277324/


All Articles