So no option for redirect with POST. That is a shame. The book mentions request.post_vars. In what situation would one use it?
sábado, 13 de Abril de 2019 às 00:33:56 UTC+1, Dave S escreveu: > > > > On Friday, April 12, 2019 at 4:25:48 PM UTC-7, João Matos wrote: >> >> redirect >> > > > Then it is actually the client (browser?) that accesses the other > function, you're just telling it where to make the new request (you can put > vars and args in the URL, but you don't control the method). Can you put > something in the session (with pickle restrictions)? Other thought: a db > table just for the handing over of request data, and the redirect URL has a > single arg that specifies the row being handed over. The number of rows > can be small because the consumer can delete a row when complete. > > /dps > > > >> sexta-feira, 12 de Abril de 2019 às 23:59:46 UTC+1, Dave S escreveu: >>> >>> >>> >>> On Friday, April 12, 2019 at 3:12:55 PM UTC-7, João Matos wrote: >>>> >>>> Is it possible to send all args and vars from a view/controller to >>>> another view/controller using POST instead of GET? >>>> >>> >>> Is this as a redirect or a fetch? fetch's 2nd argument, data, selects >>> for POST if not null, and urlencodes data's value. >>> >>> The redirect code doesn't seem to have a way change method, but then it >>> is primarily just for returning an HTTP 303 status. >>> >>> (See gluon/tools.py and gluon/http.py respectively) >>> >>> /dps >>> >>> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.