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

Re^5: Perl Script to login to a secure WebSite

by Corion (Patriarch)
on Oct 22, 2016 at 12:23 UTC ( [id://1174500]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Perl Script to login to a secure WebSite
in thread Perl Script to login to a secure WebSite

If you want to automate the login into gmail and then continue the session in a browser, you will either have to automate a browser, like Win32::IEAutomation or WWW::Mechanize::Firefox provides or you'll have to store the appropriate session variables in the cookies of the browser. There are various HTTP::Cookies modules that allow reading and writing the cookies of a browser.

  • Comment on Re^5: Perl Script to login to a secure WebSite

Replies are listed 'Best First'.
Re^6: Perl Script to login to a secure WebSite
by Anonymous Monk on Oct 22, 2016 at 13:36 UTC
    Even though i have used the Win32::IEAutomation before the perl script, the output which is generated in the html format , its not getting login in the gmail authentication page.

      Please tell us what steps you have taken to debug the source of the behaviour of the script.

      Note that WWW::Mechanize does not understand Javascript.

      Also note that you need to be much more clear in what you mean by "the gui" and "html format".

      Maybe the HTML page you receive contains a hint as to what actually happened?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-20 03:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found