Try moving it to after foreach loop
Assuming you want to send all the data in one post.foreach my $file (@files){ open FILE, $file or die $!; while (<FILE>){ $xml .= $_; } } $req->content($xml);
In reply to Re^2: HTTP POST error
by poj
in thread HTTP POST error
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |