Hi James, thanks for your answer.<br>
<br>
On 2/6/06, <b class="gmail_sendername">James Y Knight</b> &lt;<a href="mailto:foom@fuhm.net">foom@fuhm.net</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<div><span class="q"><div>On Feb 6, 2006, at 5:52 AM, Henrik Thostrup Jensen wrote:</div><br><blockquote type="cite">
I'm trying to use web2 to stream uploading of data, but I ran into some
problems. First I tried building from the example in&nbsp; <a href="http://twistedmatrix.com/projects/web2/documentation/examples/demo.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://twistedmatrix.com/projects/web2/documentation/examples/demo.html
</a>,
however args and files objects in the request did not show
anything.&nbsp; However the length of stream was correct, and using
tcpdump, showed the correct value. So I tried building my own uploader
which look like this:<br></blockquote><div><br></div></span><div>What
are you actually trying to do? There's two different kinds of
&quot;streaming upload&quot;. The simpler is just a raw data stream. If you just
want raw data, forget POST and associated form processing, and just use
request.stream.read() in with a PUT method. That will work with curl
-T.&nbsp;</div></div></blockquote><div><br>
This is what i want - raw data as I'm uploading files. I hacked up a
small example and got it to work. I also tried POST for the fun of it,
and that seems to work as well. Not sure what I got wrong before. Oh,
and deferredGenerator is darned clever :-).&nbsp;<br>
<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>I can help explain any of the alternatives in more detail if you let me know which you're really interested in.
</div></blockquote><div><br>
I think I got whats needed for now. Thanks for your time.<br>
</div></div><br>-- <br>&nbsp;&nbsp; - Henrik