this is the code of the req.pl, which is going to get index.html from topgun, but there is httaccess&htpasswd there ...
require HTTP::Request; use LWP::UserAgent; --- $ua = new LWP::UserAgent; $req = HTTP::Request->new(GET => 'http://topgun/'); $file = 'rslt.txt'; $ua->credentials('http://topgun/','By Invitation Only','hatem','ht'); $res = $ua->request($req,$file); print $$res{'_rc'}; -- now, when i run it, it prints out 401 thats it. -- Hytham Shehab -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]