in reply to HTTP POST error

Hi Monks, HTTP ERROR problem solved.Thanks But still i am not able to receive data. Is there any modification required or error in my code..?

Replies are listed 'Best First'.
Re^2: HTTP POST error
by poj (Abbot) on May 28, 2014 at 20:19 UTC
    You have this line before reading any files hence you are not sending any data.
    $req->content($xml);

    Try moving it to after foreach loop

    foreach my $file (@files){ open FILE, $file or die $!; while (<FILE>){ $xml .= $_; } } $req->content($xml);
    Assuming you want to send all the data in one post.
    poj