http://www.perlmonks.org?node_id=1057238


in reply to POST request issue

Most Perl user agent modules allow you to create POST request with arbitrary body content, and of course you can also set headers the way you want. So you could write, for example:

use LWP::UserAgent; use HTTP::Headers; my $headers = HTTP::Headers->new(); $headers->header('Content-Disposition', 'form-data; name="fileBody"; f +ilename="[Placeholder file name]"); $headers->header('Content-Type', 'text/plain'); my $ua = LWP::UserAgent->new( default_headers => $headers, ); my $response = $ua->post($URL, Content => $content_of_your_file);

I hope that helps. If not, please reformulate your question.