in reply to How do I upload a file to a https server?
update: Changed file field name.use strict; use LWP::Useragent; use HTTP::Request::Common; my $ua = new LWP::UserAgent; my $res = $ua->request(POST 'https://<address>/cgi-bin/upload.pl', Content_Type => 'form-data', Content => [ foo => 'bar', bar => 'baz', FILE1 => ["data.txt"], ] );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I upload a file to a https server?
by Anonymous Monk on Jun 08, 2004 at 10:21 UTC |