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 ---