Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: LWP Authorization

by epoptai (Curate)
on Jul 25, 2001 at 04:19 UTC ( #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.


Comment on Re: LWP Authorization
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2015-07-05 07:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls