Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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]
[stevieb]: debugged my first very low-level C memory issue within a shared library with gdb so I did :D
[stevieb]: problem was in my code, but through the debugger I figured out what was actually happening, and why. Pretty straight forward after a few hours of reading and testing

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-06-25 18:27 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (568 votes). Check out past polls.