check if an URL exists without opening it

David david at nospam.com
Fri Aug 9 21:19:21 CEST 2002


I would like to check if an URL exists.
(for instance http://www.yahoo.com/try.pdf)

The method urllib.open is unsatisfactory because the URL (which will be a
file in my program) is opened ! So it can take too long time, just to check
the existence !


David





More information about the Python-list mailing list