PitifulProgrammer has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks
Here is a new question that came up recently.
For a specific task, I need to use a VPN Client, after logging on to the client, I need to connect to a remote server. For both logons password and user name are provided
I was wondering how one could connect to a VPN-client and using that logon to connect to a server. Or maybe there is a handy module that I have not come across
I tried it with WWW:Mechanize, bit could not logon. I coud not find further information about this particular logon-scenario either
This is what I tried to do
my $server = qw[host]; my $username = "abc"; my $password = "123"; my $mech = WWW::Mechanize->new(); $mech -> credentials( $username, $password ); $mech -> get( $server ) or die "Unable to connect";
Thanks a mil in advance for your comments
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Logging on to VPN and then to remote server
by davis (Vicar) on Aug 27, 2014 at 15:13 UTC | |
by PitifulProgrammer (Acolyte) on Aug 27, 2014 at 16:32 UTC |