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
-~----------~----~----~----~------~----~------~--~---