CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
How to check if successfully logged in?

 



Hellena
New User

Mar 12, 2013, 7:33 AM

Post #1 of 4 (320 views)
How to check if successfully logged in? Can't Post

up vote 0 down vote favorite


I used WWW::Mechanize and script works, but I need to print whether it was successful or unsuccessful,how could I do that? Here is the script:


Code
my $url = "http://www.kapija.org"; 
my $username = "User123";
my $password = "Password123";
my $mech = WWW::Mechanize->new(autocheck => 1);
$mech->get($url);
$mech->form_name('form1');
$mech->field(username => $username);
$mech->field(password => $password);
$mech->click();



Kenosis
User

Mar 12, 2013, 9:32 AM

Post #2 of 4 (306 views)
Re: [Hellena] How to check if successfully logged in? [In reply to] Can't Post

Cross-posted at perlmonks.


Hellena
New User

Mar 12, 2013, 9:36 AM

Post #3 of 4 (303 views)
Re: [Kenosis] How to check if successfully logged in? [In reply to] Can't Post

I posted evrywhere but no answer :(


Kenosis
User

Mar 12, 2013, 11:00 AM

Post #4 of 4 (285 views)
Re: [Hellena] How to check if successfully logged in? [In reply to] Can't Post

Your posting at perlmonks has generated quite a few responses.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives