urllib.getsize()

Skip Montanaro skip at mojam.com
Thu Nov 18 22:50:07 CET 1999


    Gerrit> I've written a function to get the size of a HTTP/FTP url, is it
    Gerrit> good enough to be put in urllib.py?

My only worry is that HEAD doesn't always work (for whatever reason having
to do more with servers than clients).  Would it be better to wrap things in
a try/except block?  Anyone have a URL that fails with HEAD?

Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/
847-971-7098   | Python: Programming the way Guido indented...




More information about the Python-list mailing list