Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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 ('', [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?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2015-11-25 20:33 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (690 votes), past polls