can you give me an example on how to do this? thanks! On Wed, Jan 28, 2009 at 10:53 PM, leone <[email protected]> wrote:
> > you must use javascript to submit a form that use post method. > > On 29 Gen, 05:56, "[email protected]" <[email protected]> wrote: > > i want to do something like this: > > > > web.redirect('http://www.paypal.com/xxxx') > > but this will be a GET redirect. I want to do a POST redirect with data. > > > > On Wed, Jan 28, 2009 at 8:40 PM, Brent Pedersen <[email protected]> > wrote: > > > > > GET and POST are just methods. so you can just call POST() > > > > > ########################## > > > import web > > > > > urls = ("/", "hello") > > > app = web.application(urls, globals()) > > > > > class hello: > > > def GET(self): > > > return self.POST() > > > > > def POST(self): > > > return 'Hello, POST world!' > > > > > if __name__ == "__main__": > > > app.run() > > > > > On Wed, Jan 28, 2009 at 8:00 PM, [email protected] <[email protected]> > > > wrote: > > > > is it possible to redirect a URL as a POST method instead of GET? > > > > > > thanks a lot!! > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
