tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6450] New: - error-by-one in partial HTTP/1.1 GET requests
Date Thu, 14 Feb 2002 06:12:03 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6450>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6450

error-by-one in partial HTTP/1.1 GET requests 

           Summary: error-by-one in partial HTTP/1.1 GET requests
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: PC
               URL: www.activesky.com
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: stephen.klump@activesky.com


Given nonnegative integers m, n where m < n

Given an HTTP/1.1 request like

GET http://<myhost>:<myport>/data.html HTTP/1.1
Range:bytes=<m>-<n>

(no angle brackets around m and n, of course), Tomcat responds with only bytes 
(m) through (n-1).

Given an HTTP/1.1 request like

GET http://myhost:<myport>/data.html HTTP/1.1
Range:bytes=-<n>

(no angle brackets around n, of course), Tomcat responds with only the last (n-
1) bytes of data.

Therefore, it appears impossible to get the last byte of a file using partial 
GETs under HTTP/1.1.

The way I read RFC2616, byte ranges are supposed to be inclusive, start at 0 
and end at one less than the file length (section 14.35.1).

Help please?  Any suggestions how I can work around this?
Stephen

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message