Article View: ch.comp.os.linux
Article #22312"Malformed header" error: Apache/Linux
From: raeburn
Date: Thu, 20 May 1999 00:00
Date: Thu, 20 May 1999 00:00
29 lines
1527 bytes
1527 bytes
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.
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.
Thanks,
Eric Raeburn
raeburn@cup.hp.com
--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
Technical Details
Message-ID:
<7i1m07$c8a$1@nnrp1.deja.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4b73,92af197bb4c85018,start X-Google-Attributes: gidf4b73,public From: raeburn@cup.hp.com Subject: "Malformed header" error: Apache/Linux Date: 1999/05/20 Message-ID: <7i1m07$c8a$1@nnrp1.deja.com> X-Deja-AN: 480206236 X-Http-Proxy: 1.0 x40.deja.com:80 (Squid/1.1.22) for client 156.153.255.250 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Thu May 20 18:58:16 1999 GMT Newsgroups: ch.comp.os.linux X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; U)