#!perl use strict; use warnings; use HTTP::Tiny; my $ua = HTTP::Tiny->new(); my $res = $ua->request( 'POST' => 'https://my.webpage.com/my/path', { headers => { 'Content-Length' => '15', 'User-Agent' => 'curl/7.55.1', 'My-Header-2' => 'beta', 'My-Header' => 'alfa', 'Content-Type' => 'application/x-www-form-urlencoded', 'Accept' => '*/*' }, content => "here is my data" }, ); __END__ Created from curl command line curl -kv -X POST "https://my.webpage.com/my/path" --header 'My-Header: alfa' --header 'My-Header-2: beta' --data-raw 'here is my data'