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

Dear PerlMonks, I have a requirement to open a website and log into it with the credentials. I used a simple program like below
use Win32; #For correct perl programming and to avoid warnings in programs use strict; use warnings; ##Variable declaration my $link="http://www.perlmonks.com"; my $ie="\"c:/Program Files/Internet Explorer/iexplore.exe\""; ##Command to launch desired website through Internet explorer system("$ie $link");
Now the problem is to specify the username and password and getting access to the other links and tabs available. I tried with LWP::UserAgent, but i wasnt able to login to the website. Considering perlmonks.com as the website...how do i go about solving this problem. Please help me on this as i have just begun with Perl programming. Thanks, Nisha

Replies are listed 'Best First'.
Re: Accessing websites
by blue_cowdawg (Monsignor) on May 23, 2007 at 23:48 UTC
        Please help me on this as i have just begun with Perl programming.

    Apprentice Monk ,
    If this seems like a familiar question to me. I think you've asked this in a different phrasing and already gotten answers.

    If you've tried with LWP::UserAgent, let's see the code so we can figure out where the code is going wrong.

    UPDATE: DOH! fixed a broken link!


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
Re: Accessing websites
by runrig (Abbot) on May 23, 2007 at 23:48 UTC