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


In reply to Logging on to VPN and then to remote server by PitifulProgrammer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.