Article View: ch.comp.os.linux
Article #22318Re: "Malformed header" error: Apache/Linux
From: Daniel Werner
Date: Thu, 20 May 1999 00:00
Date: Thu, 20 May 1999 00:00
34 lines
2071 bytes
2071 bytes
raeburn@cup.hp.com meinte zum Thema
"Malformed header" error: Apache/Linux:
> I'm doing a simple CGI script and am getting a "Malformed header" error,
> for no reason I can discern. The platform is Apache 1.3.2 on Red Hat
> Linux 5.2. The script looks like this:
>
> printf("Content-type: text/html\r\n");
> printf("HTTP/1.0 200 OK\r\n");
> printf("MIME-version: 1.0\r\n");
> printf("Server: SRVPROJ 2.0\r\n");
> printf("Pragma: no-cache\r\n");
> printf("\r\n");
>
> printf("<HTML> <BODY>\n");
> printf("Welcome to the big website\n");
> printf("</BODY> </HTML>\n");
>
> The problem is with the "HTTP/1.0..." line. If I remove it, no error.
> The sequence of the header lines is not significant. If I do this in
> Perl, the results are the same.
I would try it with \n instead of \r\n if it is running on a linux
system.
> Hope someone knows the answer. Also, this is my first post to deja; if
> there's a more appropriate group to post this to, please let me know.
A good place would be comp.infosystems.www.authoring.cgi
Daniel
--
Unterschriftenb�gen zu den Initiativen "F�r einen freiwilligen zivilen
Friedensdienst" und "F�r eine Schweiz ohne Armee" gibt's bei der GSoA:
http://www.gsoa.ch/; Tel: 01 / 273 01 00; GSoA, Postfach, 8031 Z�rich.
Technical Details
Message-ID:
<newscache$afv1cf$gnm$1@cache.cyberlink.ch>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7i1m07$c8a$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f4b73,92af197bb4c85018 X-Google-Attributes: gidf4b73,public From: srml@schnuddel.discordia.ch (Daniel Werner) Subject: Re: "Malformed header" error: Apache/Linux Date: 1999/05/20 Message-ID: <newscache$afv1cf$gnm$1@cache.cyberlink.ch> X-Deja-AN: 480281881 X-NNTP-Posting-Host: eris.discordia.ch Content-Transfer-Encoding: 8bit References: <7i1m07$c8a$1@nnrp1.deja.com> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: usenet@dino.active.ch X-Trace: dino.active.ch 927235414 16176 193.246.253.11 (20 May 1999 21:23:34 GMT) Organization: I'm not organized Mime-Version: 1.0 Reply-To: srml@discordia.ch NNTP-Posting-Date: 20 May 1999 21:23:34 GMT Newsgroups: ch.comp.os.linux