Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: How do I retrieve .htpasswd protected html documents?

by KM (Priest)
on Oct 12, 2000 at 21:00 UTC ( [id://36438]=note: print w/replies, xml ) Need Help??


in reply to How do I retrieve .htpasswd protected html documents?

Yes, you sure can. Use LWP::UserAgent:

use LWP::UserAgent; my $ua = new LWP::UserAgent; my $req = new HTTP::Request 'GET', 'http://www.you.com/dir'; $req->authorization_basic('userid', 'password'); my $result = $ua->request($req)->as_string;

Read the POD for the module, as well as lwp-cook for other options/uses.

Cheers,
KM

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://36438]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-19 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found