J
John
Hello,
I was wondering if there was a way to use Perl
to enter the username and password automatically
in order to access a particular website. The
website that I want to access prompts the user
for the username and password in a pop-up box,
like so :
Username :
Password :
Then there are two buttons which are OK and Cancel.
How do I use Perl to input the username and password
info automatically and "click" the "OK" button?
Initially, I tried to use the following code that
I found on this newsgroup (posted by Gregory Toomey),
but it does not work for my case.
#!/usr/bin/perl
use LWP::Simple;
use strict;
my $result=get("http://username:password\@www.mysite.com/docs/show.htm");
I can see why the above does not work since the website I want to
access asks you to enter the information in a box rather than as shown
in the code above. I also believe that the website is protected by
..htaccess.
Any help would be appreciated. Thanks!
John
I was wondering if there was a way to use Perl
to enter the username and password automatically
in order to access a particular website. The
website that I want to access prompts the user
for the username and password in a pop-up box,
like so :
Username :
Password :
Then there are two buttons which are OK and Cancel.
How do I use Perl to input the username and password
info automatically and "click" the "OK" button?
Initially, I tried to use the following code that
I found on this newsgroup (posted by Gregory Toomey),
but it does not work for my case.
#!/usr/bin/perl
use LWP::Simple;
use strict;
my $result=get("http://username:password\@www.mysite.com/docs/show.htm");
I can see why the above does not work since the website I want to
access asks you to enter the information in a box rather than as shown
in the code above. I also believe that the website is protected by
..htaccess.
Any help would be appreciated. Thanks!
John