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

Content-Range missing for 416 error.

           Summary: Content-Range missing for 416 error.
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HTTP/1.1 Connector
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Currently when tomcat issues a 416 "Range is Not Satisfiable" error, it is not
providing a Content-Range header, causing clients to have to issue an additional
HEAD request to find the Content-Length, then another request for a correct range.

>From HTTP/1.1 specification section 14.16:

" A server sending a response with status code 416 (Requested range not
satisfiable) SHOULD include a Content-Range field with a byte-range- resp-spec
of "*". The instance-length specifies the current length of

the selected resource."

An example run:

$ telnet nagoya.apache.org 8080
Trying 192.18.49.131...
Connected to nagoya.apache.org.
Escape character is '^]'.
GET /index.html HTTP/1.1
Host: nagoya.apache.org
Range: bytes=10000-20000

HTTP/1.1 416 Requested Range Not Satisfiable
Content-Type: text/html
Date: Sat, 29 Dec 2001 04:52:02 GMT
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
Connection: close

<html><head><title>Apache Tomcat/4.0.1 - Error
report</title><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color :
white;background-color : #0086b2;} BODY{font-family :
sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color :
white;background-color : #0086b2;} HR{color : #0086b2;} --></STYLE>
</head><body><h1>Apache Tomcat/4.0.1 - HTTP Status 416 - Requested Range Not
Satisfiable</h1><HR size="1" noshade><p><b>type</b> Status
report</p><p><b>message</b> <u>Requested Range Not
Satisfiable</u></p><p><b>description</b> <u>The requested byte range cannot be
satisfied (Requested Range Not Satisfiable).</u></p><HR size="1"
noshade></body></html>Connection closed by foreign host.

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

Reply via email to