Re: problem with perl script and Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Denis Peuziat" <dpeuziat@xxxxxxxxxxx>
>>CGI scripts must output a "content-type" header. So when you execute
>>them on the command line, the line "content-type: text/html" ought to
>>be the first thing written out. If they don't do this they have been
>>programmed with a disregard of the CGI standard....
>>It is possible that your old webserver was configured to always add
>>this content-type header itself, and that because of this the scripts
>>worked.
> 
> so the only thing to do is to add a line like <meta 
> http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
> at the beginning of the script?
> 
> Denis

Not exactly.

At the beginning of the output generated by your script, you should do:

print "Content-Type: text/html\n\n";

Octavian


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux