[11345] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Status line in HTTP header with Apache

daemon@ATHENA.MIT.EDU (christian ALT (span))
Tue Jun 29 09:44:49 1999

From: "christian ALT (span)" <calt@tla.ch>
To: <www-talk@w3.org>
Date: Tue, 29 Jun 1999 15:35:52 +0200
Resent-From: www-talk@w3.org

This is a multi-part message in MIME format.

------=_NextPart_000_003E_01BEC245.1266C6D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

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:
8567

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
displayed.

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
                                    ChA


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

------=_NextPart_000_003E_01BEC245.1266C6D0
Content-Type: text/x-vcard;
	name="Christian ALT.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Christian ALT.vcf"

BEGIN:VCARD
VERSION:2.1
N:ALT;Christian
FN:Christian ALT
NICKNAME:Christian ALT
ORG:TElecom and Logistics Associates
TITLE:Consultant
NOTE;ENCODING=3DQUOTED-PRINTABLE:Security audit and scan =
services=3D0D=3D0A=3D0D=3D0A             Network and Securit=3D
y Training=3D0D=3D0A=3D0D=3D0A                            System =
Integrators for Che=3D
ckpoint, Cisco, Microsoft.
TEL;WORK;VOICE:+41 22 328 14 88
TEL;HOME;FAX:+41 22 328 14 88
ADR;WORK:;;10, Rue des Savoises;Geneva;;1205
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:10, Rue des =
Savoises=3D0D=3D0AGeneva 1205
EMAIL;PREF;INTERNET:calt@tla.ch
REV:19990629T133552Z
END:VCARD

------=_NextPart_000_003E_01BEC245.1266C6D0--


home help back first fref pref prev next nref lref last post