An internal redirect is not visible to the browser. The webserver merely continues to "fetch" the requested URL using the newly replaced local part.use CGI qw(redirect); print redirect("http://www.your.server/some/page"); # external ## or print redirect("/some/page"); # internal
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.
In reply to Re: redirect does/does not change address
by merlyn
in thread redirect does/does not change address
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |