in reply to Re: Authenticate HTTPS website with IE Automation
in thread Authenticate HTTPS website with IE Automation
my $URL = 'https://myurl.com'; my $user = 'rapid_perl'; my $pass = 'secret'; my $ua = LWP::UserAgent->new(); $ua->agent("USER/AGENT/IDENTIFICATION"); my $request = HTTP::Request->new(GET => $URL); $request->authorization_basic($user, $pass); my $response = $ua->request($request); my $cont_res = $response->content(); if ($cont_res=~/\<title\>Windchill\<\/title\>/i) { print "Login Successful \n"; my $ie1 = Win32::IEAutomation->new( visible => 1, maximize + => 0); $ie1->gotoURL("$URL"); sleep 15; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Authenticate HTTPS website with IE Automation
by marto (Cardinal) on Aug 24, 2016 at 07:38 UTC | |
by Corion (Patriarch) on Aug 24, 2016 at 07:53 UTC | |
by MidLifeXis (Monsignor) on Aug 24, 2016 at 10:50 UTC | |
by rapid_perl (Initiate) on Aug 24, 2016 at 08:11 UTC |