Dear Monks, I have an application in perl that can be divided into two parts:
1. Connect to a website(http://www.xyz.com/login.aspx) through perl script in Unix. The website should have a logic to connect to the website by passing user name(say:- user) and password(say:- pass). Once the credentials are supplied, HTML response of another page (say page1.aspx; url: http://www.xyz.com/Protected/page1.aspx) should be returned.

2. Now, get a number from Oracle table and enter this number into page1.aspx and press the "Search" button in page1.aspx to get HTML response of page2.aspx(url: http://www.xyz.com/Protected/page2.aspx) and store this HTML response of page2.aspx in a file for further processing.

I have tried to get the HTML response for page1.aspx but everytime I am getting the response from the login.aspx page only. I have used LWP::Simple and LWP::UserAgent modules till now for this application.
How can I go about to do these two steps? What other modules can I use?
Thanks in advance

In reply to Login into a page and getting a response from the web site by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.