John Keyes wrote:
   method.setRequestBody( ... );
   client.execute( method );

So my question is, is there a way to stream the request body rather than having to store the request in memory prior to writing it on the wire.

setRequestBody accepts an InputStream. You could use a piped stream to provide your data. Unfortunately HttpClient can not give you the OutputStream of the underlying socket because of the connection pooling. Please also note that an unbuffered request can not automatically be retried.


HTH

Ortwin Glück

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to