Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: CGI and Redirect/URI/Location

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


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 19, 2001 at 02: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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2025-04-25 14:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.