httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Wolff III <>
Subject 2.0.36 range header with cgi script problem
Date Tue, 21 May 2002 14:02:57 GMT
After upgrading to apache 2.0.36 I started seeing 416 errors in my logs.
After doing a bit of tracking, I found that when a range header is used
in a request (for example Range: bytes=0- ) that is handled by a cgi-bin
script, the request fails with a 416 status code indicating that there
is no content in the specified range. This looks like a bug.

In the example below the original request is handled through a redirect
to a program that returns information about different games based on
the original request.

The clients I have had this problem with are SmartDownload and something
that says it is MSIE 5.01, but probably isn't.

Here is an example session:
Script started on Tue May 21 08:55:20 2002
[bruno@wolff bruno]$ telnet 80

Connected to localhost.localdomain.

Escape character is '^]'.

GET /area/B_ACS.tsv HTTP/1.1
Range: bytes=0-

HTTP/1.1 416 Requested Range Not Satisfiable
Date: Tue, 21 May 2002 13:55:48 GMT
Server: Apache/2.0.36 (Unix) mod_ssl/2.0.36 OpenSSL/0.9.6c
Content-Length: 381
Content-Type: text/html; charset=iso-8859-1

<title>416 Requested Range Not Satisfiable</title>
<h1>Requested Range Not Satisfiable</h1>
<p>None of the range-specifier values in the Range
request-header field overlap the current extent
of the selected resource.</p>
<hr />
<address>Apache/2.0.36 Server at Port 80</address>
Connection closed by foreign host.

[bruno@wolff bruno]$ exit
Script done on Tue May 21 08:58:48 2002

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message