powersakthi has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I was able learn and understand use LWP::UserAgent... But guys now i'm struck up in another place... Actually i have to first login to https://secure.mycompany.com/malaysia/login.asp and then after login the page redirects to main.asp and from there the original page is data_fetch.asp where i need to pass the serialnumber and submit the form and get data... The problem i'm having is "How to handle this login page??" because the data_fetch.asp is using session and i need to manage the session.... Can you guys help me how to handle login.asp and data_fetch.asp at single pl script to get data?????????
  • Comment on Perl to Extract POST Method data from a URL

Replies are listed 'Best First'.
Re: Perl to Extract POST Method data from a URL
by moritz (Cardinal) on Aug 27, 2007 at 11:28 UTC
Re: Perl to Extract POST Method data from a URL
by gam3 (Curate) on Aug 27, 2007 at 12:01 UTC
    I think that all you need to do is add a line like
    $ua->proxy(’http’, ’http://proxy.sn.no:8001/’);
    to your script.
    -- gam3
    A picture is worth a thousand words, but takes 200K.
Re: Perl to Extract POST Method data from a URL
by rvosa (Curate) on Aug 27, 2007 at 11:30 UTC
    Can anyone give me an sample to do this..
    To do what exactly? Your question is hopelessly convoluted. What do you have so far?