in reply to redirect does/does not change address

There are two kinds of redirects:
use CGI qw(redirect); print redirect("http://www.your.server/some/page"); # external ## or print redirect("/some/page"); # internal
An internal redirect is not visible to the browser. The webserver merely continues to "fetch" the requested URL using the newly replaced local part.

An external redirect is sent immediately to the browser, asking the browser to refetch the new URL as if it was the original.

Internal redirects do not update the browser location, and can be very confusing to relative included content (like IMG SRC="foo/bar.gif"). External redirects do update the browser location.

They both have their uses, but you're in the driver seat about which one you need to use.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: redirect does/does not change address
by polettix (Vicar) on Apr 30, 2005 at 18:34 UTC
    I wonder if this actually answers OP's question, s?he's saying (bold is mine):
    I mean that I am running the same code on different web servers when I say systems.
    But your explaination is indeed interesting, I wouldn't wonder that. Does it apply to all webservers per some (de-facto) standard?

    Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

    Don't fool yourself.