From: Andrew Walrond Date: 2003-10-26T05:00:10+09:00 Subject: Question for http experts I have to type http://username:password@www.some.url/downloads/file into a browser to download a file. How can I do this with the net/http module in ruby? I have tried: require 'net/http' h = Net::HTTP.new('username:password@www.some.url') h.get('/downloads/file',nil,'destfile') Which works fine for files without the username:password@ part, but here gives SocketError: getaddrinfo: Name or service not known I am totally html ignorant, so any suggestions greatly apprieciated! Andrew Walrond