httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26583] - apache replies 206 partial content instead of 401 auth required on requests with Range: header
Date Mon, 02 Feb 2004 02:15:41 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=26583>.
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=26583

apache replies 206 partial content instead of 401 auth required on requests with Range: header





------- Additional Comments From kirill@1314.ru  2004-02-02 02:15 -------
Here it goes.
I've created empty dir named `1` with simple .htaccess in it 

AuthType Basic
AuthName "enter login"
AuthUserFile "/home/pass.txt"
require valid-user

and tried to resume some file secure.txt (which is absent in dir `1`, but i 
have its local copy, so download manager thinks it needs to be resumed):

INF	Starting download [http://www.site.com/1/secure.txt]. Attempt N 1
STA	Going to: [Request]
INF	Trying to download at 2831766 b
INF	Connecting to www.site.com (12.13.14.15:80)
OUT	GET /1/secure.txt HTTP/1.0
OUT	User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98)
OUT	Accept: */*
OUT	Range: bytes=2831766-
OUT	Referer: http://www.site.com/1/
OUT	Host: www.site.com
IN 	HTTP/1.1 416 Requested Range Not Satisfiable
IN 	Date: Mon, 02 Feb 2004 02:10:18 GMT
IN 	Server: Apache/1.3.29 (Unix)
IN 	WWW-Authenticate: Basic realm="enter login"
IN 	Last-Modified: Sun, 14 Dec 2003 14:07:51 GMT
IN 	ETag: "430e-151-3fdc6eb7"
IN 	Accept-Ranges: bytes
IN 	Content-Length: 0
IN 	Content-Range: bytes */337
IN 	Connection: close
IN 	Content-Type: text/html

If i start downloading from zero byte (Range: bytes=0-) then i'm getting 
simple HTML with 401 error message in it.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message