Req #28864 [Opn->Csd]: function to check if POST data is complete

From: Date: Wed, 18 Feb 2015 07:38:59 +0000
Subject: Req #28864 [Opn->Csd]: function to check if POST data is complete
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190768@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 Updated by: krakjoe@php.net Reported by: xuefer at 21cn dot com Summary: function to check if POST data is complete -Status: Open +Status: Closed Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: all PHP Version: 4.3.7 -Assigned To: +Assigned To: krakjoe Block user comment: N Private report: N New Comment: As mentioned earlier this year, this is out of the scope of PHP. Closing the issue. Sorry about the wait. Previous Comments: ------------------------------------------------------------------------ [2015-01-08 23:20:32] zerkms at zerkms dot ru 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. ------------------------------------------------------------------------ [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 (#190768) next »