From: ts Date: 2001-02-17T02:52:24+09:00 Subject: [ruby-talk:10984] Re: Net::HTTP with basic authentication >>>>> "C" == Carl Youngblood writes: C> Does anyone know how I can use the Net::HTTP class to access a site that C> uses basic authentication? Something like this : require 'net/http' require 'base64' enc = "Basic " + encode64("username:passwd") http = Net::HTTP.new('host.domain') http.get('/some_file', 'Authorization' => enc) do |recv| puts recv end Guy Decoux