[Twisted-Python] http.Request and JSON

Vincent Gulinao vincent.gulinao at gmail.com
Tue Jun 30 02:36:37 MDT 2009


works :)

On Tue, Jun 30, 2009 at 4:18 PM, Phil Mayers<p.mayers at imperial.ac.uk> wrote:
> On Tue, Jun 30, 2009 at 09:07:57AM +0100, Vincent Gulinao wrote:
>>How do you read JSON content from a POST using http.Request. I peeked
>>on args and it's empty.
>
> "args" is www-urlencoded only. If the content-type is something else
> it's not filled in.
>
> You want:
>
> request.content.read()
>
> IIRC
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>




More information about the Twisted-Python mailing list