develooper Front page | perl.libwww | Postings from January 2002

Re: https client by LWP

Thread Previous
Robert Barta
January 19, 2002 16:39
Re: https client by LWP
Message ID:
On Tue, Jan 08, 2002 at 03:33:49AM +0300, UpocoY wrote:
> I'm trying to write https client by LWP
> anybody know how use https by LWP?
> standart documents have to little information.
> i need examples =)

Just stumbled across this one. No real magic here. (Except
having everything installed). LWP handles everything for

require LWP::UserAgent;
$ua = LWP::UserAgent->new;

$request = HTTP::Request->new("GET", "");

$response = $ua->request($request);
if ($response->is_success) {
    print $response->content;
} else {
    print $response->message;


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About