[Twisted-Python] http.Request and JSON
vincent.gulinao at gmail.com
Tue Jun 30 09:56:18 EDT 2009
In my case at least it's cStringIO, and getvalue() sufficed.
Sorry, subscribing to twisted-web now.
On Tue, Jun 30, 2009 at 8:41 PM, Jean-Paul Calderone<exarkun at divmod.com> wrote:
> On Tue, 30 Jun 2009 13:12:05 +0100, Reza Lotun <rlotun at gmail.com> wrote:
>>On Tue, Jun 30, 2009 at 12:56 PM, Tristan
>>Seligmann<mithrandi at mithrandi.net> wrote:
>>>> To be safer, I do a request.content.getvalue() since content is a
>>>> cStringIO object and you can never be sure if somewhere along the
>>>> chain of processing someone hasn't done a .read and forgot to do a
>>> You should probably do the seek/read instead, since I don't believe
>>> this is guaranteed to be a cStringIO; it might be an actual file on
>>> disk, or something else.
>>If that's true then there really should be a .get_body() method on the
> Why can't you seek and read?
> Also, this discussion would be more appropriate on the twisted-web mailing
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
More information about the Twisted-Python