W3C home > Mailing lists > Public > www-talk@w3.org > May to June 1999

Status line in HTTP header with Apache

From: christian ALT (span) <calt@tla.ch>
Date: Tue, 29 Jun 1999 15:35:52 +0200
Message-ID: <007e01bec235$a77747a0$164ebfc2@tla.ch>
To: <www-talk@w3.org>
We are working with apache as a reverse proxy, to access an internal host.

When we access certain CGI, the proxy is adding an additional header(status
line). The consequences are  that the browser displays a first line with :

HTTP/1.0 200 OK date Server: 1.0  Content-type: text/html Content-length:

In fact the browser receives two headers, and uses  the first one. This is
not really nice for text, but disastrous for images, since they cannot be

After a long troubleshooting session, we found out that the reason is that
our application is sending back a status header with two spaces instead of
just one. The normal syntax is :

HTTP/1.0 SP 200 SP OK

with SP: Space character (20hex)

and what our application delivers is

HTTP/1.0 SP SP 200 SP OK

Once we removed the additional space, the proxy worked correctly.
IE and Netscape are accepting the two SP as if just one was present. So is
this a bug or the normal way for a proxy to work ?

TIA for your advice

Christian ALT                                 go to security alert:
Telecom and Logistics Associates
10, rue des Savoises   CH-1205 Geneva
Phone +41 22 328 14 88      E-mail: calt@tla.ch

Received on Tuesday, 29 June 1999 09:43:34 UTC

This archive was generated by hypermail 2.4.0 : Monday, 20 January 2020 16:08:23 UTC