<div dir="ltr">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&#39;re delimited chunks.<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 21, 2013 at 12:48 AM, 小学园PHP <span dir="ltr">&lt;<a href="mailto:xxy-php@qq.com" target="_blank">xxy-php@qq.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

My program(Cumulus) receives http put(file by chunk).<div>And then resend the file to another process(Hadoop).</div><div>The trouble is that i need get the file object in my program<i>(not stored on disk then read from).</i></div>

<div>So where should i get it? rawDataReceived or allContentReceived?</div><br>_______________________________________________<br>
Twisted-web mailing list<br>
<a href="mailto:Twisted-web@twistedmatrix.com">Twisted-web@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">cheers<div>lvh</div></div>
</div>