You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by James Werkowski <jw...@attglobal.net> on 2001/02/14 21:14:13 UTC
general/7247: CGI script returns xml header. Server generates error.
>Number: 7247
>Category: general
>Synopsis: CGI script returns xml header. Server generates error.
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Wed Feb 14 12:20:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: jwerkowski@attglobal.net
>Release: 1.3.14
>Organization:
apache
>Environment:
Linux 2.2.12-20
>Description:
Using CGI.pm to generate html output, the standard header string
<?xml version="1.0" encoding="utf-8"?>
causes Apache to generate a "malformed header from script" error, aborting the script.
>How-To-Repeat:
Use CGI.pm to create a cgi script with the lines
print html_start();
print "test";
print html_end();
>Fix:
According to the author of CGI.pm, Apache should accept the header. (Apparently it did in all versions before 1.3.)
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]