in reply to redirect does/does not change address
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: redirect does/does not change address
by polettix (Vicar) on Apr 30, 2005 at 18:34 UTC |