On 2009-02-11, Muddy Coder <cosmo_gene...@yahoo.com> wrote: > 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.
Try a GET on http://www.somedomain.com/. If the admin has indexing enabled, you should get something like "ls" output. If not, you're out of luck. > I wish urllib would have a function to let me do it, as well > as I do 'dir' in DOS, 'ls' on unix/linux. I wish I was 20 years younger and ten times as rich as I am. > Somebody write me a demo? Somebody send me a time machine and a pile of cash? On second thought, don't bother with the cash -- with a time machine, I can generate my own pile of cash. -- Grant -- http://mail.python.org/mailman/listinfo/python-list