On 7 Sep 2012, at 3:56 AM, Pradeeshnarayan <[email protected]> wrote: > In my web2py application after a form submit, I want to redirect to another > page with some POST variables. I couldn't find any option to set then method. > > My main idea is to avoid those values from users. > > I would greatly appreciate any suggestions. >
I think that redirection is not what you're after; that will just cause the browser to post the same form to the new (redirected) URL. If the new function/page is in the same controller, you could edit the request and just call that function, I suppose. You could use urllib/urllib2 to make an entirely new request, but you'd want to be careful not to create a deadlock (for example, you'd want to forget the session before making the request). Seems like unnecessary overhead. If the function/page is in another controller, perhaps the heavy lifting could be moved to a shared module. --

