On Nov 10, 7:17 pm, je <[email protected]> wrote:
> web.input() strips '+' from GET parameters.

You must urlencode the parameters ('+' becomes '%2B').
Example:

import web
class test:
    def GET(*args): return dict(web.input())
web.application(('.*', 'test'), globals()).run()

now you should do:

$ curl localhost:8080/?a=1%2B , which returns {'a': u'1+2'}

instead of:

$ curl localhost:8080/?a=1+2 , which returns {'a': u'1 2'}
--~--~---------~--~----~------------~-------~--~----~
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