>Number:         1622
>Category:       general
>Synopsis:       "Malformed header" error when headers are really okay.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sun Jan  4 19:10:00 PST 1998
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.2.4
>Environment:
Linux, kernel 2.0.14, gcc 2.7.2
>Description:
This isn't a problem with buffering, if the output of a script( example analog 
log analyzer)
is put in a file, loads fine through web server.  But if the script
is run by the server, the server reports an error 500 and gives an error
like this in error_log:
[Sun Jan  4 21:54:49 1998] access to /home/httpd/cgi-bin/test-bug failed for 
127.0.0.1, reason: malformed header from script. Bad 
header=<html><head><title>WHACK!</tit
Problem doesn't appear if there is a blank line between Content-type: and the 
beginning of the HTML.
>How-To-Repeat:
#!/bin/sh
echo "Content-type: text/html"

echo "<html><head><title>WHACK!</title></head><body>Wallop</body></html>"
>Fix:

>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]



Reply via email to