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. Advertisements

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,807
    Randy Webb
    Feb 4, 2006
  2. Bone Ur
    Replies:
    4
    Views:
    640
    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:
    613
    Lee Atkinson
    Feb 24, 2009
  4. SeanRW
    Replies:
    1
    Views:
    601
    Dominick Baier [DevelopMentor]
    May 25, 2006
  5. samppi
    Replies:
    27
    Views:
    859
    David A. Black
    Dec 5, 2007
  6. Madame Blablavatsky
    Replies:
    8
    Views:
    409
    Dr John Stockton
    Sep 16, 2005
  7. Replies:
    2
    Views:
    290
    Randy Webb
    Feb 4, 2006
  8. Howard Martin

    Opening a pop-up from a pop-up

    Howard Martin, Jul 11, 2007, in forum: Javascript
    Replies:
    2
    Views:
    188
    Howard Martin
    Jul 12, 2007
Loading...