$ua->post($url, Content_Type => 'form-data', Content => [ field1 => 'value1', file => ['data.txt'] ] );