For Programmers: Free Programming Magazines  


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]

 

Author CGI.pm program
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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com