hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35372] - The InputStreamRequestEntity doesnt make sense for chunked streams
Date Fri, 17 Jun 2005 15:51:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35372>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35372


olegk@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From olegk@apache.org  2005-06-17 17:51 -------
(In reply to comment #0)
> I just began looking at converting some code that used HttpClient 2.0 to using
3.0.
> 
> I ran into the following issue:
> 
> When creating InputStreamRequestEntity:
>     httppost.setRequestBody(new
> InputStreamRequestEntity(pipedIn,PostMethod.CONTENT_LENGTH_CHUNKED));
> 
> The PostMethod.CONTENT_LENGTH_CHUNKED is deprecated. You can do a
> HttpPost.setChunked(true), but doing so will cause the InputStreamRequestEntity
> to calculate the size using a buffered stream

I doubt this is the case. The old code in the EntityEnclosingMethod was quite
cryptic but I do not think it would cause the content to be buffered as alleged

http://jakarta.apache.org/commons/httpclient/3.0/xref/org/apache/commons/httpclient/methods/EntityEnclosingMethod.html#307

, which, in my case, would be a
> disaster since I am using this code to upload a large file.
> 

Some of the issues you are talking about have been addressed past the RC2
release. See Bug #35372 for details

Oleg

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message