Can urllib check path exists on server?

Muddy Coder cosmo_general at yahoo.com
Tue Feb 10 18:55:32 CET 2009


Hi Folks,

urllib bridges up a client to a server, it works fine. I wonder: is
there a method that can check the existence of a file in the server
side? We can check such an existence on local filesystem by using
os.path.exists(), can I do such a check on server? For example,
http://somedomain.com/foo/bar.jpg is residing in a hosting server, can
I use urllib to check if bar.jpg file existing or not? Thanks!

Muddy Coder



More information about the Python-list mailing list