[Twisted-Python] http.Request and JSON

Phil Mayers p.mayers at imperial.ac.uk
Tue Jun 30 04:18:04 EDT 2009


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




More information about the Twisted-Python mailing list