Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: LWP Authorization

by epoptai (Curate)
on Jul 25, 2001 at 04:19 UTC ( [id://99527]=note: print w/replies, xml ) Need Help??


in reply to LWP Authorization

Form login is different from HTTP authentication. It's usually done with LWP::Useragent and HTTP::Request::Common like this working example:
#!perl -w use strict; use LWP::UserAgent; use HTTP::Request::Common; my $ua = LWP::UserAgent->new; my $request = POST ('http://perlmonks.org', [node=>'showchatmessages', + displaytype=>'raw']); my $response = $ua->request($request); my $page = $response->content; print $page;

--
Check out my Perlmonks Related Scripts like framechat, reputer, and xNN.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-29 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found