discover redirected url

Miko miko at nono.nevernever.net
Sat Aug 21 11:21:54 EDT 2004


how does one determine a redirected url?

for example:

  http://tinyurl.com/3apbd

is redirected to:

  http://www.cbsnews.com/stories/2004/03/18/sunday/main607191.shtml

using httplib, i get a HTTPResponse object, but there is nothing in there
that shows the redirection, including the msg member.

is there a way to determine a redirected url using the standard Python
libraries?





More information about the Python-list mailing list