$TLT_MAX_REQ_LENGTH) ? $TLT_MAX_REQ_LENGTH : $reqLength;
// Open the input stream for access to raw POST data
$postFileHandle = fopen("php://input", 'rb');
if ($postFileHandle) {
while ($actualReadLength < $maxReadLength) {
$postData = fread($postFileHandle, $maxReadLength);
if ($postData) {
$actualReadLength += strlen($postData);
}
else if ($postData != ""){
echo "postData ---- $postData";
$html .= "
\r\nFailed to read the raw POST data. Read of the input stream failed.\r\n
\r\n";
break;
} else {
break;
}
$postData = null;
}
fclose($postFileHandle);
}
else {
$html .= "
\r\nFailed to read the raw POST data. Open of the input stream failed.\r\n
\r\n";
}
}
catch (Exception $e) {
$html .= "
\r\nException when reading request data!\r\n
\r\n".$e->getMessage()."\r\n
\r\n";
}
$end = MSTimestamp();
$html .= "