develooper Front page | perl.beginners | Postings from April 2002

RE: GoryDetails on: error log message

From:
Mat Harrison
Date:
April 26, 2002 09:07
Subject:
RE: GoryDetails on: error log message
Message ID:
GCEKIBMFLMFBOMGKMEFAEEDACAAA.mat.harris@genestate.com
i have tried from the command line, on both server it returns:

Location: http://whatever.the.url.was


however only one works via web browser

-----Original Message-----
From: drieux [mailto:drieux@wetware.com]
Sent: Friday, April 26, 2002 4:55 PM
To: Mat Harrison
Subject: Re: GoryDetails on: error log message



On Friday, April 26, 2002, at 08:42 , Mat Harrison wrote:

> ok, something has again gone wrong, I can execute the following on my 
> local
> webserver but not my host.

ok, in both cases this is at the command line?
or in both cases this is from the URL call???

What I would check is to make sure that the 'execute bits'
are set so that you can, at the command line do

	./nameOfScript.cgi




>  it returns the error:
>
> "Premature end of script headers"
>
>
> <script snippet>
> #!/usr/bin/perl -w
>
> use strict;
> use CGI qw/:standard/;
>
> my $goback = "http://www.perl.com/CPAN/";
> print "Location: $goback\n\n";
> exit;
> </script snippet>
>
>


ciao
drieux

---






nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About