Urlnames in urllib2

goyatlah serestaAtwanadooDotnl
Thu Oct 5 02:03:58 CEST 2006

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

Any help? TIA :)

More information about the Python-list mailing list