linux-l: Perlsuche
Robert C. Helling
helling at aei-potsdam.mpg.de
Di Apr 17 13:16:51 CEST 2001
On Tue, 17 Apr 2001, Duncan Rubinger wrote:
> Hi,
>
> > > [Tue Apr 17 11:05:00 2001] [error] [client 192.168.0.198] malformed
> > > header from script. Bad header=duncan:
> > > /home/httpd/cgi-bin/findhttp.cgi
> >
> > Als schnelle Abhilfe kannst Du folgende Zeile an den Anfang des
> > Scripts stellen:
> >
> > print "Content-type: text/html\n\n";
>
> Hilft leider nicht viel, selber Fehler :-(
>
> Hier mal das Script:
> -------Snip------
> #!/usr/bin/perl
> use CGI;
> print "Content-type: text/html\n";
> print "Available Websites on Server:\n";
>
Du hast nicht richtig abgeschrieben:
print "Content-type: text/html\n\n";
^^^^
beide newlines sind wichtig!
Robert
--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling Institut fuer Physik
Humboldt-Universitaet zu Berlin
print "Just another Fon +49 30 2093 7964
stupid .sig\n"; http://www.aei-potsdam.mpg.de/~helling
Mehr Informationen über die Mailingliste linux-l