Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: CGI Redirect with Status

by sutch (Curate)
on Jun 04, 2003 at 20:41 UTC ( #263143=note: print w/replies, xml ) Need Help??

in reply to CGI Redirect with Status

Try it!


#!/usr/bin/perl -Tw use CGI qw(:standard); my $cgi = new CGI; print redirect('');
Results in:
bash-2.05$ ./ Status: 302 Moved Location: bash-2.05$

Replies are listed 'Best First'.
Re: Re: CGI Redirect with Status
by Ovid (Cardinal) on Jun 04, 2003 at 21:01 UTC

    Your results show his problem. He wants a 301 status code (moved permanently), not a 302 status code (Found). See status code definitions for more information.


    New address of my CGI Course.
    Silence is Evil (feel free to copy and distribute widely - note copyright text)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://263143]
[marto]: That reminds me, I made some notes somewhere with regard W::M::C, I'll get round to a PR when I've time to flesh it out
[Corion]: erix: But that makes for fun bug hunting. "What version of Chrome are you running?" "v62". "I also run v62 and it works on my machine". :-(
[Corion]: marto: Great, looking forward to the PR!
LanX wonders, do we have a rule against systematic down voting?
[erix]: we frown :)
[marto]: Does the command line arg --product-version@ help?
[LanX]: xD
[erix]: 'systematic' is going to be hard to define I think
[marto]: Err no @

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-12-12 20:19 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (335 votes). Check out past polls.