How to do authorization in pop up using net/http or open-ur

Hi,

I fetch source from one site but in that site it asks for username and
password

in popup when site loads.

so i use following code but it do not work

http = Net::HTTP.new(“http://google.com”, 443)
http.start do |http|
req = Net::HTTP::Get.new("/v1/tags/get", {“User-Agent” =>
juretta.com RubyLicious 0.2”})
req.basic_auth(username, password)
response = http.request(req)
resp = response.body
end

Any one know about how to work with popup authorization ,
please help…

Thanks,
pshah

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs