known_client_problems.html revision 25503838e438bb909e3ff880125732c7ed5e64ad
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Apache HTTP Server Project</TITLE>
</HEAD>
<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
<BODY
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#000080"
ALINK="#FF0000"
>
<!--#include virtual="header.html" -->
<H1 ALIGN="CENTER">Known Problems in Clients</H1>
<P>Over time the Apache Group has discovered or been notified of problems
with various clients which we have had to work around. This document
describes these problems and the workarounds available. It's not arranged
in any particular order. Some familiarity with the standards is assumed,
but not necessary.
<P>For brevity, <EM>Navigator</EM> will refer to Netscape's Navigator
product, and <EM>MSIE</EM> will refer to Microsoft's Internet Explorer
product. All trademarks and copyrights belong to their respective
companies. We welcome input from the various client authors to correct
inconsistencies in this paper, or to provide us with exact version
<P>For reference,
<P>Various of these workarounds are triggered by environment variables.
The admin typically controls which are set, and for which clients, by using
noted all of these workarounds exist in versions 1.2 and later.
<A name="trailing-crlf"><H3>Trailing CRLF on POSTs</H3></A>
<P>This is a legacy issue. The CERN webserver required <CODE>POST</CODE>
data to have an extra <CODE>CRLF</CODE> following it. Thus many
clients send an extra <CODE>CRLF</CODE> that
is not included in the <CODE>Content-Length</CODE> of the request.
Apache works around this problem by eating any empty lines which
appear before a request.
<A name="broken-keepalive"><H3>Broken keepalive</H3></A>
<P>Various clients have had broken implementations of <EM>keepalive</EM>
(persistent connections). In particular the Windows versions of
Navigator 2.0 get very confused when the server times out an
idle connection. The workaround is present in the default config files:
<BLOCKQUOTE><CODE>
BrowserMatch Mozilla/2 nokeepalive
</CODE></BLOCKQUOTE>
Note that this matches some earlier versions of MSIE, which began the
practice of calling themselves <EM>Mozilla</EM> in their user-agent
strings just like Navigator.
support keepalive when it is used on 301 or 302 (redirect)
responses. Unfortunately Apache's <CODE>nokeepalive</CODE> code
patch</A> to version 1.2.1. Then add this to your config:
<BLOCKQUOTE><CODE>
BrowserMatch "MSIE 4\.0b2;" nokeepalive
</CODE></BLOCKQUOTE>
<A name="force-response-1.0"><H3>Incorrect interpretation of <CODE>HTTP/1.1</CODE> in response</H3></A>
<P>To quote from section 3.1 of RFC1945:
<BLOCKQUOTE>
HTTP uses a "<MAJOR>.<MINOR>" numbering scheme to indicate versions
of the protocol. The protocol versioning policy is intended to allow
the sender to indicate the format of a message and its capacity for
understanding further HTTP communication, rather than the features
obtained via that communication.
</BLOCKQUOTE>
response. Many client authors mistakenly treat this part of the response
as an indication of the protocol that the response is in, and then refuse
to accept the response.
<P>The first major indication of this problem was with AOL's proxy servers.
server. After some discussion, AOL fixed their proxies. In
anticipation of similar problems, the <CODE>force-response-1.0</CODE>
environment variable was added to Apache. When present Apache will
but will not in any other way change the response.
<P>The pre-1.1 Java Development Kit (JDK) that is used in many clients
of the early pre-releases of the 1.1 JDK. We think it is fixed in the
1.1 JDK release. In any event the workaround:
<BLOCKQUOTE><CODE>
BrowserMatch Java1.0 force-response-1.0 <BR>
</CODE></BLOCKQUOTE>
<P>RealPlayer 4.0 from Progressive Networks also exhibits this problem.
However they have fixed it in version 4.01 of the player, but version
4.01 uses the same <CODE>User-Agent</CODE> as version 4.0. The
workaround is still:
<BLOCKQUOTE><CODE>
BrowserMatch "RealPlayer 4.0" force-response-1.0
</CODE></BLOCKQUOTE>
does not understand <EM>chunked</EM> responses). The workaround
<BLOCKQUOTE><CODE>
BrowserMatch "MSIE 4\.0b2;" downgrade-1.0 force-response-1.0
</CODE></BLOCKQUOTE>
This workaround is available in 1.2.2, and in a
</A> against 1.2.1.
<A name="257th-byte"><H3>Boundary problems with header parsing</H3></A>
<P>All versions of Navigator from 2.0 through 4.0b2 (and possibly later)
have a problem if the trailing CRLF of the response header starts at
offset 256, 257 or 258 of the response. A BrowserMatch for this would
match on nearly every hit, so the workaround is enabled automatically
on all responses. The workaround is to detect when this condition would
occur in a response and add extra padding to the header to push the
trailing CRLF past offset 258 of the response.
<A name="boundary-string"><H3>Multipart responses and Quoted Boundary Strings</H3></A>
<P>On multipart responses some clients will not accept quotes (")
around the boundary string. The MIME standard recommends that
such quotes be used. But the clients were probably written based
on one of the examples in RFC2068, which does not include quotes.
Apache does not include quotes on its boundary strings to workaround
this problem.
<A name="byterange-requests"><H3>Byterange requests</H3></A>
<P>A byterange request is used when the client wishes to retrieve a
portion of an object, not necessarily the entire object. There
was a very old draft which included these byteranges in the URL.
Old clients such as Navigator 2.0b1 and MSIE 3.0 for the MAC
exhibit this behaviour, and
it will appear in the servers' access logs as (failed) attempts to
retrieve a URL with a trailing ";xxx-yyy". Apache does not attempt
to implement this at all.
<P>A subsequent draft of this standard defines a header
<CODE>Request-Range</CODE>, and a response type
this draft with a few fixes, and it defines the header
<P>Navigator (versions 2 and 3) sends both <CODE>Range</CODE> and
<CODE>Request-Range</CODE> headers (with the same value), but does not
receives a <CODE>Request-Range</CODE> header it considers it "higher
priority" than a <CODE>Range</CODE> header and in response uses
<P>The Adobe Acrobat Reader plugin makes extensive use of byteranges and
response. Unfortunately there is no clue that it is the plugin
making the request. If the plugin is used with Navigator, the above
workaround works fine. But if the plugin is used with MSIE 3 (on
Windows) the workaround won't work because MSIE 3 doesn't give the
<CODE>Range-Request</CODE> clue that Navigator does. To workaround this,
Apache special cases "MSIE 3" in the <CODE>User-Agent</CODE> and serves
with MSIE 3 is actually due to the Acrobat plugin, not due to the browser.
<P>Netscape Communicator appears to not issue the non-standard
<CODE>Request-Range</CODE> header. When an Acrobat plugin prior to
version 3.01 is used with it, it will not properly understand byteranges.
The user must upgrade their Acrobat reader to 3.01.
<A name="cookie-merge"><H3><CODE>Set-Cookie</CODE> header is unmergeable</H3></A>
<P>The HTTP specifications say that it is legal to merge headers with
duplicate names into one (separated by semicolon). Some browsers
that support Cookies don't like merged headers and prefer that each
<CODE>Set-Cookie</CODE> header is sent separately. When parsing the
headers returned by a CGI, Apache will explicitly avoid merging any
<CODE>Set-Cookie</CODE> headers.
<A name="gif89-expires"><H3><CODE>Expires</CODE> headers and GIF89A animations</H3></A>
<P>Navigator versions 2 through 4 will erroneously re-request
GIF89A animations on each loop of the animation if the first
response included an <CODE>Expires</CODE> header. This happens
regardless of how far in the future the expiry time is set. There
is no workaround supplied with Apache, however there are hacks for <A
and for <A
<A name="no-content-length"><H3><CODE>POST</CODE> without <CODE>Content-Length</CODE></H3></A>
<P>In certain situations Navigator 3.01 through 3.03 appear to incorrectly
issue a POST without the request body. There is no
known workaround. It has been fixed in Navigator 3.04, Netscapes
provides some
There's also
some information</A> about the actual problem.
<!--#include virtual="footer.html" -->
</BODY>
</HTML>