You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2006/01/10 16:50:38 UTC

DO NOT REPLY [Bug 38214] New: - Resumable HTTP1.1 download/upload (RANGE header)

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=38214>.
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=38214

           Summary: Resumable HTTP1.1 download/upload (RANGE header)
           Product: HttpClient
           Version: Nightly Builds
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Commons HttpClient
        AssignedTo: httpclient-dev@jakarta.apache.org
        ReportedBy: hauser@acm.org


Hi,

org.apache.commons.httpclient.HttpStatus.SC_REQUESTED_RANGE_NOT_SATISFIABLE
appears to reference the http RANGE method.

We would like to offer resumable download/upload and HttpClient would a #1
candidate to work on this. Apart from SC_REQUESTED_RANGE_NOT_SATISFIABLE, it
doesn't appear to be implemented within httpClient.

Do you have an idea how to best do this?
Do you think this also works for upload, i.e. a "multipart/form-data" post?

I guess for upload, one would also have to extend
    org.apache.commons.fileupload.disk.DiskFileItem.DiskFileItem(
to know what its supposed full length is and to record where it stopped...

What do you think?

   Ralf

P.S.: At least the tomcat counterpart appears to support it with
org.apache.catalina.servlets.DefaultServlet.parseRange(HttpServletRequest
request, HttpServletResponse response, ResourceAttributes resourceAttributes)

-- 
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


DO NOT REPLY [Bug 38214] - Resumable HTTP1.1 download/upload (RANGE header)

Posted by bu...@apache.org.
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=38214>.
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=38214


olegk@apache.org changed:

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




------- Additional Comments From olegk@apache.org  2006-01-11 18:22 -------
(In reply to comment #0)
> Hi,
> 
> org.apache.commons.httpclient.HttpStatus.SC_REQUESTED_RANGE_NOT_SATISFIABLE
> appears to reference the http RANGE method.
> 
> We would like to offer resumable download/upload and HttpClient would a #1
> candidate to work on this. Apart from SC_REQUESTED_RANGE_NOT_SATISFIABLE, it
> doesn't appear to be implemented within httpClient.
> 

HttpClient is not a browser and is not meant to support resumable
download/upload. This functionality can be built on top of a generic HTTP
library such as Commons HttpClient 

> Do you have an idea how to best do this?
> Do you think this also works for upload, i.e. a "multipart/form-data" post?
> 

You can use Content-Range or a custom header similar to Content-Range or a
hidden fields in the "multipart/form-data" encoded body to pass the range of the
uploaded conent.

> I guess for upload, one would also have to extend
>     org.apache.commons.fileupload.disk.DiskFileItem.DiskFileItem(
> to know what its supposed full length is and to record where it stopped...
> 
> What do you think?
> 

As useful as this can be for some users this code should not be in HttpClient proper

Oleg

>    Ralf
> 
> P.S.: At least the tomcat counterpart appears to support it with
> org.apache.catalina.servlets.DefaultServlet.parseRange(HttpServletRequest
> request, HttpServletResponse response, ResourceAttributes resourceAttributes)

-- 
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


DO NOT REPLY [Bug 38214] - Resumable HTTP1.1 download/upload (RANGE header)

Posted by bu...@apache.org.
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=38214>.
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=38214





------- Additional Comments From hauser@acm.org  2006-05-09 07:53 -------
see also Bug 39527 for how to use a similar approach to make the team
httpclient/tomcat a proxy

-- 
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


DO NOT REPLY [Bug 38214] - Resumable HTTP1.1 download/upload (RANGE header)

Posted by bu...@apache.org.
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=38214>.
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=38214





------- Additional Comments From hauser@acm.org  2006-01-11 08:15 -------
This appears to be a notorious wish on the firefox side as well:
https://bugzilla.mozilla.org/show_bug.cgi?id=230870

-- 
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