Add to the instructions so that the user agent knows the location of your proxy:
$ua->proxy("http", "http://localhost:8888");
Regarding the comment that POST is a valid thing (which I probably wouldn't have noticed), there is something like this in my module:
use HTTP::Request::Common qw( POST GET );
source
share