Hello all, I try to make a script to download a file with htaccess. I have the error 401, it does not work. Why my script do not use my credentials?
#!/usr/bin/perl
use LWP::UserAgent;
my $ua = LWP::UserAgent->new;
$ua->credentials(
'192.168.0.200:443',
'weba',
'myuser' => 'mypass'
);
$response = $ua->get('https://192.168.0.200/myfile.gz',
':content_file' => '/home/devil/archive.gz'
);
BR
DEvil
