You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Michael Gleissner <mg...@harper.cc.il.us> on 2001/02/09 00:36:58 UTC

error?

" Status: 302 Moved Location: http://server/cgi-bin/spam/fini.pl "

This is the error I get when I try to redirect from a perl script.
Any idea what it means?

This is the code for the redirect:

use CGI;

$co = new CGI;

print $co->redirect('http://server/cgi-bin/spam/fini.pl');

print $co->start_html,

$co->end_html;


Thanks,
******************************************
Michael Gleissner
Unix System Administrator
Office: A234
Extension: 6831

Re: error?

Posted by James Sutherland <ja...@cam.ac.uk>.
On Thu, 8 Feb 2001, Michael Gleissner wrote:

> " Status: 302 Moved Location: http://server/cgi-bin/spam/fini.pl "

i.e. "You're looking in the wrong place: the correct URL is
http://server..." That's what your code should be producing.

> This is the error I get when I try to redirect from a perl script.
> Any idea what it means?
> 
> This is the code for the redirect:
> 
> use CGI;
> 
> $co = new CGI;
> 
> print $co->redirect('http://server/cgi-bin/spam/fini.pl');
> 
> print $co->start_html,
> 
> $co->end_html;

It means you've issued an HTTP redirect to that URL. What's wrong with
that?


James.