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: [EMAIL PROTECTED]
http://www.tla.ch
BEGIN:VCARD
VERSION:2.1
N:ALT;Christian
FN:Christian ALT
NICKNAME:Christian ALT
ORG:TElecom and Logistics Associates
TITLE:Consultant
NOTE;ENCODING=QUOTED-PRINTABLE:Security audit and scan services=0D=0A=0D=0A             Network and Securit=
y Training=0D=0A=0D=0A                            System Integrators for Che=
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=QUOTED-PRINTABLE:10, Rue des Savoises=0D=0AGeneva 1205
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:19990629T133552Z
END:VCARD

Reply via email to