hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Keyes <j...@integralsource.com>
Subject Re: streaming request body
Date Tue, 24 Feb 2004 16:03:28 GMT

On 24 Feb 2004, at 14:39, Ortwin Glück wrote:
> John Keyes wrote:
>
>>> In both cases, it is possible to get the behavior that you desire.
>> Not it is not.  Again think of XXX,000 of requests.
>
> I am getting a little angry by now. C'mon man, we wrote this baby and  
> we know very well what's possible with it.

Ortwin, if I am wrong just correct me, maybe I just can't explain  
myself properly.

> So please don't tell us it can not do unbuffered requests. It's as  
> simple as:
>
> InputStream dataStream = .... // get this from wherever, use a pipe or  
> something
> PostMethod method = new PostMethod("/myservlet");
> method.setRequestContentLength(EntityEnclosingMethod.CONTENT_LENGTH_CHU 
> NKED)
> method.setRequestBody(dataStream);
> client.execute(method);

My point here is that if I have X requests then there can be
   X * CONTENT_LENGTH_CHUNKED
bytes in memory at one time.

-John K

> If you still can not figure out how you can get an InputStream for  
> your in-memory data, then please refer to other Java resources; but  
> this is certainly not an issue with HttpClient.
>
> hope that helps
>
> Ortwin Glück
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:  
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:  
> commons-httpclient-dev-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message