Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: CGI and Redirect/URI/Location

by Zaxo (Archbishop)
on Jun 18, 2001 at 03:29 UTC ( [id://89225]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to CGI and Redirect/URI/Location

You might try:

# cookie stuff precedes use CGI; my $cgi = new CGI; $|=1; print $cgi->redirect(-cookie=>[$c], -uri=>"http://$URL/", # and possibly -nph=>1, );

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: CGI and Redirect/URI/Location
by LeGo (Chaplain) on Jun 18, 2001 at 22:28 UTC
    Just curious as to what difference $| being set to 1 makes in this code.

    LeGo

      That sets autoflush on STDOUT, meaning that 'print "foo";' is sent promptly. In most cases your script will end right after the redirect call, but for long-running scripts it's a courtesy to the client.

      After Compline,
      Zaxo

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://89225]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.