Can I 'LOOK' through urllib?

Christian Heimes lists at cheimes.de
Wed Feb 11 18:57:00 EST 2009


Muddy Coder schrieb:
> Hi Folks,
> 
> I feel good after played urllib with fun!
> 
> Now I want to LOOK to server through urllib. I read the urllib docs,
> but I did not find such a function. For example, if there are many
> files located in http://www.somedomain.com/data_folder, but I don't
> know what the filenames are residing in the data_folder. I wish urllib
> would have a function to let me do it, as well as I do 'dir' in DOS,
> 'ls' on unix/linux. Somebody write me a demo? Thanks!

The WebDAV [1] extension to the HTTP protocol supports the desired
feature. Are you able to teach your webserver WebDAV by any chance? All
major HTTP server have plugins for WebDAV.

Christian

[1] http://en.wikipedia.org/wiki/Webdav




More information about the Python-list mailing list