Aug 22, 2015, 11:10 AM
I have not tested this, but it's the starting point I'd use and adjust as needed.
my $ua = LWP::UserAgent->new;
my $req = $ua->request( POST 'http://mydomain.com/script.php',
Content_Type => 'multipart/form-data',
Content => [ targets => [ 'filename' ] ]
my $response = $ua->request($req);
(This post was edited by FishMonger on Aug 22, 2015, 11:16 AM)