Hi,

On Fri, Apr 4, 2008 at 4:16 PM, Alec <[EMAIL PROTECTED]> wrote:
> how can I read raw post input? e.g. form data
>
>  >>> environ["wsgi.input"].read(content_length)
>  >>> nothing ...
>  >>> environ["paste.parsed_formvars"][1].read(content_length)
>  >>> nothing ...
>
>  thanks!
>

WebOb (http://pythonpaste.org/webob) makes this really easy:

>>> from webob import Request
>>> req = Request(environ)
>>> raw_post_body = req.body # there is a string and file object interface

HTH,

Eric

>  --
>  Regards,
>  alec
>
>
>
>  _______________________________________________
>  Paste-users mailing list
>  [email protected]
>  http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users
>

_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to