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

P

Priyank Shah

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top