Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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.

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 imbibing at the Monastery: (4)
As of 2016-08-29 23:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (410 votes). Check out past polls.