2008/10/26 OXx <[EMAIL PROTECTED]>: > Hello all, > > I want to download a file protected with a htaccess. I saw the getstore > function with lwp:Simple module but authentification does not work. > I saw a code with lwp::useragent > use LWP::UserAgent; > $ua = LWP::UserAgent->new; > $req = HTTP::Request->new(GET=> $url);$req->authorization_basic($nl_id, > $nl_passwd); > > But i don(t want to download a page but a file. Is it possible ?
You may try WWW::Mechanize, here is the example usages: http://search.cpan.org/~petdance/WWW-Mechanize-1.34/lib/WWW/Mechanize/Examples.pod -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/