http://www.perlmonks.org?node_id=848882


in reply to Basic / Digest authentication in website

LWP handles digest authentication as long as you get the credentials right. A simple example...

#!/usr/bin/perl -T use strict; use warnings; use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->credentials('jigsaw.w3.org:80', 'test', 'guest', 'guest'); my $response = $ua->get('http://jigsaw.w3.org/HTTP/Digest/'); $response->is_success or die $response->status_line; print $response->decoded_content;

You can check your credentials with Firefox. Open the URL, notice the realm it tells you, enter user/pass and verify that you can actually log in. If all that checks out, you might need to deal with cookies and/or Javascript.