httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guille (Bisho)" <bi...@eurielec.etsit.upm.es>
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 www.apache.org 80
Trying 64.208.42.41...
Connected to www.apache.org.
Escape character is '^]'.
GET / HTTP/1.1
Host: www.apache.org
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 >      - bisho@onirica.com
      \  L  /       - bisho@eurielec.etsit.upm.es
 -oOOo-------oOOo-
 Onírica: Análisis, diseño e implantación de soluciones informáticas
          http://www.onirica.com

Mime
View raw message