Manejando las Redirecciones HTTP

A menudo querremos saber a qué dirección apunta una URL debido que el servidor nos devuelve un header 301 o 302. He aquí diferentes formas de saberlo.

Referencias

http://diveintopython.org/http_web_services/redirects.html
http://www.gulic.org/almacen/diveintopython-5.4-es/http_web_services/redirects.html (Mismo que el anterior pero en castellano)
http://docs.python.org/library/urllib2.html#httpredirecthandler-objects
http://stackoverflow.com/questions/843392/python-get-http-headers-from-urllib-call