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

Im using Active State perl, but I am unable to download a file from the internet. My script works on a unix machine that uses libwww-perl-5.10, so I need to know how to use this lib file in active state on windows. Is it even possible? Thanks

Replies are listed 'Best First'.
Re: Active State question
by Marza (Vicar) on May 17, 2002 at 17:46 UTC

    I hate to say; It depends. Without code I can say "normally, yes it should work"

    Posting your Code would be a good thing here as downloads are performed in different fashion. Are you using ftp? HTML?

    Post some of your code and we may help you better.

      This is the conection part of the code:
      require LWP::UserAgent; use HTTP::Request::Common; use Digest::MD5; $ua = LWP::UserAgent->new; $ua->credentials("url.com", "Datafeeds", $user, $password); # URL where to download the database and its updates $url = "http://url/moreurl/$user/vuldb/"; sub check_files { stat("vdb-dump"); die "No database dump found.\n" if !-d _; }
      I keep getting the error " cannot dowload: 401 Authorization Required"