Emanuel has asked for the wisdom of the Perl Monks concerning the following question:
use LWP::UserAgent; use LWP::Protocol::https; use Crypt::SSLeay; my $ua = new LWP::UserAgent; $ua->agent("Avto-Phone.SMS-Router/0.1 ", $ua->agent); my $req = new HTTP::Request POST => 'https://213.253.66.196/router/tes +t.php'; $req->content_type('text/xml'); $req->content("C'mon, display this finally"); my $res = $ua->request($req); if ($res->is_success) { print $res->content; } else { print "FAILED: ", $res->status_line, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::UserAgent HTTPS problem
by Emanuel (Pilgrim) on Aug 15, 2001 at 08:56 UTC | |
by Emanuel (Pilgrim) on Aug 15, 2001 at 10:24 UTC | |
|
Re: LWP::UserAgent HTTPS problem
by synapse0 (Pilgrim) on Aug 15, 2001 at 10:42 UTC |