Octavian Rasnita wrote: > Hi, > > Try using: > > my $url = http://username:[EMAIL PROTECTED]/;
Teddy, Clean up the post a bit and top posting isn't proper etiquette. If the above doesn't get it for you, take a look at WWW::Mechanize which can handle form input etc. >>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 #### >>. >>. >>. -- ,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED] (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/ -/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff) _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
