[thelist] Viewing content of HTML redirect

Eduardo Kienetz eduardok at gmail.com
Mon Mar 24 13:46:30 CDT 2008


On Mon, Mar 24, 2008 at 1:35 PM, Julian Rickards
<julian.rickards at gmail.com> wrote:
> Hi:
>
>  If you go to http://ontario.ca/mininglands, there seems to be a bit of a
>  pause as the redirect takes you to
>  http://www.mndm.gov.on.ca/mndm/mines/lands/default_e.asp. It is my belief
>  that the redirect is an HTML redirect (and not a server-based one) because
>  of the pause.
>
>  Is there anyway of viewing the redirect page before it quickly disappears?

If you are on Linux you can run: lynx -dump -source
http://ontario.ca/mininglands

Which shows some html and within it:
<META HTTP-EQUIV="Refresh" CONTENT="0;
URL=/mbs/keywords/keywords.nsf/GoTo/mininglands?OpenDocument">

Which in turn, redirects to:
http://www.mndm.gov.on.ca/mndm/mines/lands/default_e.asp

BTW, there is some very weird stuff there...

A better thing to do is to modify the header using a php code like this:
<?php header('Location:
http://www.keywords.gov.on.ca/mbs/keywords/keywords.nsf/redirect?readform&kywrd=mininglands');
?>

-- 
Eduardo Bacchi Kienetz
http://www.noticiaslinux.com.br/eduardo/
http://eduardo.intercambista.blog.br



More information about the thelist mailing list