cmilfo has asked for the wisdom of the Perl Monks concerning the following question:
The output looks like this:#!/usr/bin/perl -w use HTTP::Request::Common; use LWP::UserAgent; LWP::Debug::level('+'); # Create a user agent object my $ua = LWP::UserAgent->new() or die "$!\n"; # Set the request parameters my $clientfile = '/home/cmilfo/MINE/cmilfo.pubkey'; my $serverfile = 'cmilfo.pubkey'; my $user = 'cmilfo'; # Create a request my $response = $ua->request(POST 'https://mail007style/pubkeys/upload.pl', Content_Type => 'form-data', Content => [ clientfile => ["$clientfile"], serverfile => $serverfile, user => $user, ] ); if($response->is_success) { print STDOUT $response->content; } else { print STDOUT "request failed: ", $response->status_line, "\n"; } __END__
LWP::UserAgent::new: () LWP::MediaTypes::read_media_types: Reading media types from /usr/lib/p +erl5/site_perl/5.6.1/LWP/media.types LWP::UserAgent::request: () LWP::UserAgent::simple_request: POST https://mail007style/pubkeys/uplo +ad.pl LWP::UserAgent::_need_proxy: Not proxied LWP::Protocol::http::request: () LWP::UserAgent::request: Simple response: Internal Server Error request failed: 500 Can't connect to mail007style:443 ()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Https Help
by blakem (Monsignor) on Oct 13, 2001 at 02:28 UTC | |
|
Re: Https Help
by cmilfo (Hermit) on Nov 01, 2001 at 16:36 UTC |