https authentication & storing https page in string

Discussion in 'Ruby' started by Naveen Dhanuka, Sep 19, 2007.

  1. Hi,

    I have to write a ruby script which will give me the dynamic page on a
    https as a string.

    First I have to login in the https page.
    I am doing this using WATIR.
    Then I want the dynamic page to be stored in a string str.

    I am able to do the https login using WATIR.
    But when I try to get the dynamic page using HPRICOT, I am still
    getting the old https login page.

    Kindly suggest what to do.

    Regards,
    ND
     
    Naveen Dhanuka, Sep 19, 2007
    #1
    1. Advertising

  2. Naveen Dhanuka

    Phil Guest


    > -----Original Message-----
    > From: Naveen Dhanuka [mailto:]
    > Sent: Wednesday, September 19, 2007 3:49 PM
    > To: ruby-talk ML
    > Subject: https authentication & storing https page in string
    >
    > Hi,
    >
    > I have to write a ruby script which will give me the dynamic page on a
    > https as a string.
    >
    > First I have to login in the https page.
    > I am doing this using WATIR.
    > Then I want the dynamic page to be stored in a string str.
    >
    > I am able to do the https login using WATIR.
    > But when I try to get the dynamic page using HPRICOT, I am still
    > getting the old https login page.
    >
    > Kindly suggest what to do.


    Either do the authorization via Ruby Net::HTTP, or use the cookie the site
    sets for authentication, or use WATIR to save the page, and load the saved
    page.

    --
    Phillip Gawlowski
     
    Phil, Sep 19, 2007
    #2
    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. Sean Patterson

    Authentication Ticket not storing UserData

    Sean Patterson, Jan 25, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    629
    Sean Patterson
    Jan 25, 2005
  2. toton
    Replies:
    11
    Views:
    712
    toton
    Oct 13, 2006
  3. Mythran
    Replies:
    2
    Views:
    406
    Mythran
    Mar 8, 2007
  4. Matt
    Replies:
    4
    Views:
    380
  5. Jonathan Wood
    Replies:
    1
    Views:
    511
    Jonathan Wood
    Jun 2, 2008
Loading...

Share This Page