Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 romping around the Monastery: (17)
As of 2014-07-24 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (162 votes), past polls