Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Perl to Extract POST Method data from a URL

by powersakthi (Initiate)
on Aug 27, 2007 at 10:59 UTC ( [id://635274]=perlquestion: print w/replies, xml ) Need Help??

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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://635274]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 02:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found