httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guille (Bisho)" <>
Subject Error 416: Requested range not satisfiable
Date Sat, 27 Jan 2001 20:51:53 GMT

Apache 2.0b1-dev doesn't seems to support the HTTP error 416, were
invalid ranges of a resource are requested.

Apache currently just close the conection.

As its said in the RFC 2616 (HTTP/1.1):

     10.4.17 416 Requested Range Not Satisfiable

     A server SHOULD return a response with this status code if a
     request included a Range request-header field (section 14.35),
     and none of the range-specifier values in this field overlap
     the current extent of the selected resource, and the request
     did not include an If-Range request-header field. (For
     byte-ranges, this means that the first- byte-pos of all of
     the byte-range-spec values were greater than the current
     length of the selected resource.) 

     When this status code is returned for a byte-range request,
     the response SHOULD include a Content-Range entity-header
     field specifying the current length of the selected resource
     (see section 14.16). This response MUST NOT use the
     multipart/byteranges content- type. 

$ telnet 80
Connected to
Escape character is '^]'.
GET / HTTP/1.1
Connection: close
Range: bytes=5-4

Connection closed by foreign host.

Also Apache accepts as valid ranges as "-50-100-5" :) It takes the first
number, -50 as the range. I supose this is OK.

     \|||||||/    Guillermo Pérez Pérez
     < o   o >      -
      \  L  /       -
 Onírica: Análisis, diseño e implantación de soluciones informáticas

View raw message