Re: Twisted-web Digest, Vol 107, Issue 4
"小学园PHP" <[email protected]> Fri, 22 Mar 2013 09:34:49 +0800
| Newsgroups | gmane.comp.python.twisted.web |
|---|---|
| Message-ID | <[email protected]> |
Thanks, Laurens. I will have a try with your advices. Message: 2 Date: Thu, 21 Mar 2013 07:32:18 -0700 From: Laurens Van Houtven <[email protected]> Subject: Re: [Twisted-web] A Question, TIA! To: Twisted Web World <[email protected]> Message-ID: <CAE_Hg6YN8-cf42=ddPSW2w6zJ08-R+9z=+9G0q2EHOXYyMSRdQ@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Sounds like you want twisted.web.client.Agent; when you make a request you get an IResponse object that has a deliverBody method that takes a protocol. That protocol can receive chunks (dataReceived), or you could use e.g. a LineReceiver if you know they're delimited chunks. _______________________________________________ Twisted-web mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web