https://issues.apache.org/bugzilla/show_bug.cgi?id=51725
Bug #: 51725
Summary: Multiple Range: request accepted as "Range: n-m"
Product: Apache httpd-2
Version: 2.1-HEAD
Platform: All
OS/Version: All
Status: NEW
Keywords: RFC
Severity: normal
Priority: P2
Component: Core
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 27436
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27436
Multiple Range: request lines trace
Multiple Range: request as
Range: bytes=0-1
Range: 2-3
seems syntactically invalid, so the second Range: should be ignored.
(RFC 2616,14.16 Content-Range)
Apache seems to (correctly) coalesce the request to
Range: bytes=0-1,2-3
which IS syntactically correct, and processed accordingly.
Open issue: how should we handle and/or coalesce multiple Range: lines?
(classical Set-Cookie: have had the similar problem, having "," as data)
Trace on httpd.apache.org (Apache/2.3.8) follows:
===========
Requesting as
> Range: bytes=0-1
> Range: bytes=2-3
yielding only the first Range: being accepted.
===========
% telnet httpd.apache.org 80
Trying 140.211.11.131...
Connected to httpd.apache.org.
Escape character is '^]'.
GET http://httpd.apache.org/lists.html HTTP/1.0
Host: httpd.apache.org
Connection: close
Range: bytes=0-1
Range: bytes=2-3
HTTP/1.1 206 Partial Content
Date: Fri, 26 Aug 2011 03:38:35 GMT
Server: Apache/2.3.8 (Unix) mod_ssl/2.3.8 OpenSSL/1.0.0c
Last-Modified: Mon, 21 Mar 2011 18:52:05 GMT
ETag: "9b39af-5b7a-49f029fb47f40"
Accept-Ranges: bytes
Content-Length: 109
Vary: Accept-Encoding
Connection: close
Content-Type: multipart/byteranges; boundary=4ab6047b55edfcaa2
--4ab6047b55edfcaa2
Content-type: text/html
Content-range: bytes 0-1/23418
<!
--4ab6047b55edfcaa2--
Connection closed by foreign host.
===========
Requesting as
> Range: bytes=0-1
> Range: 2-3
yielding both Range: being accepted.
===========
% telnet httpd.apache.org 80
Trying 140.211.11.131...
Connected to httpd.apache.org.
Escape character is '^]'.
GET http://httpd.apache.org/lists.html HTTP/1.0
Host: httpd.apache.org
Connection: close
Range: bytes=0-1
Range: 2-3
HTTP/1.1 206 Partial Content
Date: Fri, 26 Aug 2011 03:42:38 GMT
Server: Apache/2.3.8 (Unix) mod_ssl/2.3.8 OpenSSL/1.0.0c
Last-Modified: Mon, 21 Mar 2011 18:52:05 GMT
ETag: "9b39af-5b7a-49f029fb47f40"
Accept-Ranges: bytes
Content-Length: 193
Vary: Accept-Encoding
Connection: close
Content-Type: multipart/byteranges; boundary=4ab60563258c1ccb0
--4ab60563258c1ccb0
Content-type: text/html
Content-range: bytes 0-1/23418
<!
--4ab60563258c1ccb0
Content-type: text/html
Content-range: bytes 2-3/23418
DO
--4ab60563258c1ccb0--
Connection closed by foreign host.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]