So using net/http, I can do:

my_id  = 'user'
my_pwd = 'password'
auth   = "Basic " + Base64.encode64( "#{my_id}:#{my_pwd}" )

url    = '/'
site   = 'server'
port   = 80

req = Net::HTTP.new( site, port )
req.get( url, 'Authorization' => auth ) do |r|
 puts r
end

Has anyone ever considered having Watir do

my_id  = 'user'
my_pwd = 'password'
auth   = "Basic " + Base64.encode64( "#{my_id}:#{my_pwd}" )

ie = IE.new
    ie.goto("http://server";).auth

It seems like it ought to be possible, and it'd save 99% of the
WinClicker ugliness.

-Chris

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to