Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: Using Perl To Redirect To Other Pages

by Your Mother (Archbishop)
on Nov 19, 2008 at 21:35 UTC ( [id://724731]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Using Perl To Redirect To Other Pages
in thread Using Perl To Redirect To Other Pages

If the question asked for how to use HTTP to redirect, I'd probably think to give the print "Location..." answer but when asked for cgi, even in lowercase, we do tend to think of CGI.pm. Plus, though the print "Loc..." works, it is short on headers. It's fine to do it yourself but doing it right is usually easier through an interface. Even one that is less than ideal.

~>perl -MCGI -le 'print CGI::redirect("http://perlmonks.org")' Status: 302 Found Location: http://perlmonks.org

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://724731]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-26 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found