gube has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks,
I have posted the question day before. I am getting error in https. Now, i have installed SSL and Crypt-SSLeay. I have given the correct username and password and enter, but, i can extract only initial page. I have to extract page after login. Please modify the code and help me. I am trying for long time.
Thanks in advance.
use LWP; use HTTP::Request::Common; use HTTP::Cookies; my $agent=LWP::UserAgent-> new; $agent-> cookie_jar(HTTP::Cookies->new); $url="https://adwords.google.com/select/TrafficEstimatorSandbox"; $request=POST ($url, Content=> ["login.userid "=>"xxx", "login.passwor +d"=> "xxx"]); $response=$agent-> request($request); print "$response-> code\n"; $response-> is_success or die " $response->message \n"; print $response-> content;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Advice me in https Extraction code
by holli (Abbot) on Jul 18, 2005 at 09:11 UTC | |
|
Re: Advice me in https Extraction code
by ghenry (Vicar) on Jul 18, 2005 at 08:25 UTC | |
|
Re: Advice me in https Extraction code
by gube (Parson) on Jul 18, 2005 at 08:28 UTC |