This looks like a firewall problem. Try the following after the new but before the POST:
$ua->proxy(['http', 'ftp'], 'http://proxy.sn.no:8001/');
Of course, substitute your proxy and port for the sample:)
BTW, this is lifted straight from 'perldoc LWP::UserAgent'. If you need authentication, check out the 'credentials' section.