Home > Archive > PERL CGI Beginners > November 2004 > CGI.pm program
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Taylor Lewick 2004-11-19, 8:55 pm |
| I have a CGI.pm program that works from the command line, but when I try
and view it from the browser, the error_log shows,=20
malformed header from script. Bad header=3D<?xml version=3D"1.0" =
encoding=3D":
/web/cgi-bin/bb_test/bb_test5.p
I don't have these problems when I just use content-type:html, so any
idea why this happens when I use the CGI.pm module?
Thanks,
Taylor
| |
| Bill Stephenson 2004-11-19, 8:55 pm |
| On Nov 19, 2004, at 3:49 PM, Lewick, Taylor wrote:
> I have a CGI.pm program that works from the command line, but when I
> try
> and view it from the browser, the error_log shows,
> malformed header from script. Bad header=<?xml version="1.0"
> encoding=":
> /web/cgi-bin/bb_test/bb_test5.p
>
> I don't have these problems when I just use content-type:html, so any
> idea why this happens when I use the CGI.pm module?
>
> Thanks,
You probably just need to use something like:
print $query->header;
Before you start outputting anything else.
Send in the code that's causing the problem if this is not the case....
Kindest Regards,
Bill Stephenson
|
|
|
|
|