Hi, Try using:
my $url = http://username:[EMAIL PROTECTED]/; Teddy ----- Original Message ----- From: "Sandeep Deshpande" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, August 08, 2005 1:27 PM Subject: Login & Password > Dear All, > I was using a simple code to access web-pages in a variable and then process > them further. However there are many instances when the page demands Login & > Password. If I know the login & password then what is the correct way to > login to the site and download any page out of it? Do I need to know 'realm' > value of every such site? In case I do not know 'realm' value of any site > then how can i get it? > > My current code is as follows > ====================== > use LWP::Simple; > my $url ="http://111.11.22.33/fts/ftsmain.asp"; # For example this page > demands login & password then how Can Log in. > > my $page = get($url); > #### Process $page #### > . > . > . > ====================== > > -Sandeep > Have a nice day... > > _______________________________________________ > ActivePerl mailing list > [email protected] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
