I'm trying to figure out how to get the exact opened url after a urlopen in urllib2. Say you have a link : http://myhost/mypath : what do I get back, - the file mypath on myhost - the file index.html on myhost/mypath, - or maybe something else. Snd what about the following: http;//myhost/index.htm where index.htm is actually a directory. With urllib2.geturl() I can find out if the name is changed to mypath/ or index.htm/ but it seems that is the only thing I can find out.
Any help? TIA :) -- http://mail.python.org/mailman/listinfo/python-list