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 09: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

      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/
      ok ok. Thank you.
      p.s. nice picture.