Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 2829 invoked by uid 6000); 16 Feb 1998 16:50:07 -0000 Received: (qmail 2777 invoked by uid 2001); 16 Feb 1998 16:50:00 -0000 Date: 16 Feb 1998 16:50:00 -0000 Message-ID: <19980216165000.2776.qmail@hyperreal.org> To: apache-bugdb@apache.org Cc: apache-bugdb@apache.org, From: Marc Slemko Subject: Re: protocol/1813: After CGI (POST) HTTP-Headers shown in browser and internal Error "OK" (200) Reply-To: Marc Slemko Sender: apache-bugdb-owner@apache.org Precedence: bulk The following reply was made to PR protocol/1813; it has been noted by GNATS. From: Marc Slemko To: Carsten Schabacker Cc: apbugs@hyperreal.org Subject: Re: protocol/1813: After CGI (POST) HTTP-Headers shown in browser and internal Error "OK" (200) Date: Mon, 16 Feb 1998 09:42:37 -0700 (MST) On 16 Feb 1998, Carsten Schabacker wrote: > >Description: > After a CGI-Script returns (only POST method) i get some HTTP-Headers in= =20 > the document. Example Output: > >=20 > > Passwort f. HTTP-Server ändern > >

Passwort wurde ge=E4ndert

> > HTTP/1.1 200 OK > Date: Mon, 16 Feb 1998 15:16:58 GMT > Server: Apache/1.3b3 > Connection: close > Content-Type: text/html This it the output from where? What are the headers on this response? >=20 > After this i get the "internal error" message "

OK

" > >How-To-Repeat: > If you wish i can send you the .shtml and cgi script (python 1.5 with=20 > mod_python) Are you sure it is not a problem with mod_python? Is there any authentication required for the document in question? Can you repeat it by hand, eg. telnetting to the port and entering the request yourself? > >Fix: > I think the problem is that the programm does not check if a header-strin= g > is empty and always appends newlines. [spurious newlines are added; grep= =20 > for "\015\012" through 'src/main/http_protocol.c'] > I think you bvputs/rvputs (or a wrapper around this) should test. I'm not sure I understand what you are saying here...