my $hash_form = { 'data' => '@test.xml', 'header' => 'Content-Type:text/xml', }; my $content = $lwpcurl->post($post_url, $hash_form, $referer);