Req #28864 [Com]: function to check if POST data is complete

From: Date: Thu, 08 Jan 2015 23:20:36 +0000
Subject: Req #28864 [Com]: function to check if POST data is complete
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189776@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=28864&edit=1 ID: 28864 Comment by: zerkms at zerkms dot ru Reported by: xuefer at 21cn dot com Summary: function to check if POST data is complete Status: Open Type: Feature/Change Request Package: Feature/Change Request Operating System: all PHP Version: 4.3.7 Block user comment: N Private report: N New Comment: According to HTTP specification it's not possible to fool a web server by sending incomplete request. The rules to determine if the request is complete are transparent and it's a web server job to only process the complete and valid HTTP requests. Previous Comments: ------------------------------------------------------------------------ [2004-06-21 09:22:15] xuefer at 21cn dot com Description: ------------ due to network issue, or stopped by user the content submitted by user maybe incomplete; there should be a way to check it. it's serious if the admins submit a incomplete post data. that will do unrecoverable damage. i'd like if there's a function: int content_is_complete() which return strlen(content) == Content-Length; yes, we can do '<input type=hidden value=1 name=complete></form>', and do isset($_POST['complete']) but this is not easy for those html-designers to add it each <form> by hand '<input type=submit name=submit>', and do isset($_POST['submit']), but not all "submit" is the last element of form ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=28864&edit=1

« previous php.bugs (#189776) next »