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
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.