Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
The stupid question is the question not asked
 
PerlMonks  

Redirect problem

by webstudioro (Acolyte)
on Aug 15, 2003 at 05:10 UTC ( [id://284102]=perlquestion: 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.

webstudioro has asked for the wisdom of the Perl Monks concerning the following question:

Hello. Line print $query->redirect('http://www.larrycenter.go.ro'); it's
only for UNIX? In windows (xp) don't work.
#!perl use CGI; $query = CGI->new(); print $query->redirect('http://www.larrycenter.go.ro');

Replies are listed 'Best First'.
Re: Redirect problem
by valdez (Monsignor) on Aug 15, 2003 at 05:22 UTC

    CGI.pm's man page says:

    You can also use named arguments:
    print $query->redirect(-uri=>'http://somewhere.else/in/movie/land', -nph=>1);
    The -nph parameter, if set to a true value, will issue the correct headers to work with an NPH (no-parse-header) script. This is important to use with certain servers, such as Microsoft Internet Explorer, which expect all their scripts to be NPH.
    What happens if you use -nph => 1?

    HTH, Valerio

      ok ok. Thank you.
      p.s. nice picture.
      This is important to use with certain servers, such as Microsoft Internet Explorer,
      So, MS IE is a server. Well, well, well. s/Internet Explorer/Internet Information Server/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://284102]
Approved by valdez
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.