From: Charlie Bowman Date: 2006-06-14T04:06:28+09:00 Subject: re net::http and htaccess --=-Pvvxsy65bklLL1tx9arE Content-Type: text/plain Content-Transfer-Encoding: 7bit I should of googled authentication instead of htaccess. Sorry for the noise. Here is the solution Basic Authentication require 'net/http' Net::HTTP.start('www.example.com') {|http| req = Net::HTTP::Get.new('/secret-page.html') req.basic_auth 'account', 'password' response = http.request(req) print response.body } Charlie Bowman http://www.recentrambles.com --=-Pvvxsy65bklLL1tx9arE--