From: Arun Kumar Date: 2009-05-12T22:06:49+09:00 Subject: Re: Want some information.... Robert Klemme wrote: > 2009/5/12 Arun Kumar : >> � I want to know about authentication in ruby. Is it possible to scrap >> html of those sites which require basic authentication. > > I am not a native speaker but for all I know "want" is considered > impolite among English speaking people. > >> N. B. - providing link to any documentation which states this problem >> will be really helpfull. > > What did your research turn up? Did you check the standard library's > documentation in the well known place? > > Regards > > robert Hi Thanks for the quick reply. Sorry for the impolite statement. 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 } This is the phrase which I got from the ruby-doc site. I dont know whether this is helpfull or not. That's why I asked such a doubt. Please give me a general guidance for this issue. Thanks Arun Kumar -- Posted via http://www.ruby-forum.com/.