Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am looking to enter a website and automatically input a username and password. If nothing else, it would be a step in the right direction. Rotem Meron rotem100@zahav.net.il

Replies are listed 'Best First'.
RE: I am looking at entering a website.
by chromatic (Archbishop) on Mar 24, 2000 at 21:37 UTC
    The LWP library is your friend:
    use LWP::UserAgent; $ua = new LWP::UserAgent; $req = new HTTP::Request (GET => 'http://my.webpage.org/keepout'); $req->authorization_basic('username', 'password'); # do what you want here: print $ua->request($req)->as_string;
Re: I am looking at entering a website.
by Crulx (Monk) on Feb 18, 2000 at 12:37 UTC
    Use IE. *grin* Or a later build of mozilla. I think.
    ---
    Crulx
    crulx@iaxs.net
RE: I am looking at entering a website.
by agoth (Chaplain) on Feb 18, 2000 at 14:06 UTC
    If you want to automate form submission youre probably going to need to look at the LWP::Simple and LWP::UserAgent modules which come with the standard Perl distribution I believe.