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

Discussion in 'Ruby' started by Priyank Shah, Sep 9, 2010.

  1. Priyank Shah

    Priyank Shah Guest

    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
    --
    Posted via http://www.ruby-forum.com/.
     
    Priyank Shah, Sep 9, 2010
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    8,567
    Randy Webb
    Feb 4, 2006
  2. Bone Ur
    Replies:
    4
    Views:
    410
    Bone Ur
    Dec 19, 2007
  3. Chris Davoli

    Tool Tip pop up - pop up time is too short

    Chris Davoli, Feb 24, 2009, in forum: ASP .Net
    Replies:
    1
    Views:
    491
    Lee Atkinson
    Feb 24, 2009
  4. SeanRW
    Replies:
    1
    Views:
    383
    Dominick Baier [DevelopMentor]
    May 25, 2006
  5. samppi
    Replies:
    27
    Views:
    515
    David A. Black
    Dec 5, 2007
Loading...

Share This Page