Edit report at https://bugs.php.net/bug.php?id=64584&edit=1
ID: 64584 Updated by: ras...@php.net Reported by: viraj dot kanwade at snstech dot com Summary: Content-length is correct, but data truncated in php://input -Status: Open +Status: Not a bug Type: Bug Package: HTTP related Operating System: Centos PHP Version: 5.3.23 Block user comment: N Private report: N New Comment: $_SERVER['Content-Length'] is set by the web server and tends to come directly from the Content-Length header the client sends. If the client aborts before sending all the data the web server is not going to adjust this value. This is quite normal. You can check the connection status to see if the client aborted mid-request on you. See http://php.net/manual/en/features.connection-handling.php Previous Comments: ------------------------------------------------------------------------ [2013-04-04 17:12:24] viraj dot kanwade at snstech dot com Description: ------------ We use PHP 5.3.14 Sometimes ajax post to a PHP page, results in $_SERVER content-length to be set correctly, but the $_POST does not have all data. I have also tested php://input to see if the data was received. But the data was truncated. This is NOT a file upload. The data could be of 1000-5000 chars. But only 400-600 chars are received. This is intermittent. Could be similar to https://bugs.php.net/bug.php?id=22427 Expected result: ---------------- The post values submitted by ajax request should be available in $_POST. Actual result: -------------- The post value is truncated. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64584&edit=1