Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: Redirects and CGI.pm

by mfriedman (Monk)
on Oct 02, 2002 at 19:30 UTC ( #202367=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Redirects and CGI.pm
in thread Redirects and CGI.pm

Therein lies your problem. A redirect is part of the HTTP header; once you print the header (via the header() method) you can't print another one. Try:

print $query->header(-cookie => $cookie_name, -location => 'http://www.somewhere-else.com/');

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2021-06-18 02:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (87 votes). Check out past polls.

    Notices?