in reply to LWP::USERAGENT - POST through basic authentication
#!/usr/bin/perl use strict; use warnings; use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new; $req->method("POST"); $req->uri("http://www.example.com"); $req->authorization_basic('user', 'password'); print $ua->request($req)->as_string;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: LWP::USERAGENT - POST through basic authentication
by zantoro (Initiate) on Oct 11, 2011 at 13:51 UTC | |
by Khen1950fx (Canon) on Oct 12, 2011 at 14:54 UTC |