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

RE: GoryDetails on: error log message

Mat Harrison
April 26, 2002 09:07
RE: GoryDetails on: error log message
Message ID:
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 []
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


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


--- Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About