Hi all,
This is my first post ever on this forum so sorry in advance if Im not in the right place.
I am using a very simple cgi perl script to read incoming data sent via the POST method.
Normally, the message body should be in the server's STDIN(standard input). When working locally (across our local network), everything is fine. Whenever I get a POST request from our trading Partners in the US, STDIN seems to be somehow closed!!
the perl code is:
if ($ENV{'REQUEST_METHOD'} eq "POST")
{
binmode STDIN;
read(STDIN, $buf, $ENV{CONTENT_LENGTH});
}else {
$buf = $ENV{QUERY_STRING};
}
The $buf is always empty and the call does not succeed!!!
Any help would be more than appreciated!!!
Many thanks to all
Karim