redbaron wrote:
> There is a way to separate POST and GET vars. I hope it could be
> useful as it allows you to define behavior of your app in more strict
> manner. For example if someone sends data to /login using POST method
> and adds some vars to URL the all of them appears in web.input().
> 
> You can emulate it with form like:
> '<form action="/test?a=555&b=666" method="POST" name="login">' and
> then in /test controller in POST method handler just print out
> web.input(). you'll see both form variables and get variables.  If you
> expect to process only POST variables and ignore GET then instead of
> web.input() do web.input(_method='post').

When would you need this?

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

Reply via email to