S
Sherm Pendley
Joe said:I am getting a "did not produce a valid header" error when I run the
script through the browser. I ran the script in the command prompt and
I was fine.
"The script"? What script? I don't see any script.
Anyhow, first read "perldoc -q 500" for some general pointers to debugging
CGI scripts.
This error in particular means that either your script produced some sort of
output (a warning, perhaps) before producing HTTP headers, or it produces no
HTTP headers at all.
In particular, since you're using Perl's CGI module, make sure you're calling
its header() method before you print any other output.
Strictly speaking, by the way, this has nothing to do with the Perl language.
The error in question is produced by your web server, in response to the lack
of HTTP headers printed by your script; you'd get the same results if you had
written your script in Python (or whatever). You might get better answers by
posting in a CGI group, such as comp.infosystems.www.authoring.cgi.
sherm--