my $ua = LWP::UserAgent->new; $ua->agent("MyApp/0.1 "); $res = $ua->post($url, Content_Type => 'form-data', Content => [ "ac" => 'upload', "file" => [ "$FILE" ], ] ); print $res->content, "\n";
In reply to Re^2: Using LWP to automate file upload
by cdlvj
in thread Using LWP to automate file upload
by cdlvj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |