I'm trying to find a way to bypass all cookies, redirects, etc. in a script. My idea was to let lynx solve all the issues, and ask for the URL the program ends up at. Is there any way for lynx to print the URL before the content of the page?

E.g. I want

lynx -dump "times.com"

to give me

http://www.nytimes.com

Anyone know how to do that?