From: Carlos Diaz Date: 2005-07-13T22:50:35+09:00 Subject: how to get a http directory listing Hi, Has anyone ever tried to do something like this? I'm trying to log in to a url and get a listing of all the files on that url. For example, with wget I can fetch the files this way: wget http://username:password@172.16.1.1/logs/somelog.log this would get the individual file and download it to my local machine. However, I'm trying to automate this script to go out and look at the contents of this directory and do something for each file in there. For example, I want to do something like this: Dir.foreach("http://username:password@172.16.1.1/logs") {|x| } However, I'm not sure if there is a simple way to do something like this in Ruby. Anyone encountered this before? Thanks in advance, Carlos (Ruby Rookie)