php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #28864 function to check if POST data is complete
Submitted: 2004-06-21 09:22 UTC Modified: 2015-02-18 07:38 UTC
Votes:5
Avg. Score:3.4 ± 1.4
Reproduced:3 of 4 (75.0%)
Same Version:1 (33.3%)
Same OS:3 (100.0%)
From: xuefer at 21cn dot com Assigned: krakjoe (profile)
Status: Closed Package: *General Issues
PHP Version: 4.3.7 OS: all
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: xuefer at 21cn dot com
New email:
PHP Version: OS:

 

 [2004-06-21 09:22 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-08 23:20 UTC] 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.
 [2015-02-18 07:38 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: krakjoe
 [2015-02-18 07:38 UTC] krakjoe@php.net
As mentioned earlier this year, this is out of the scope of PHP.

Closing the issue.

Sorry about the wait.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 03:01:28 2024 UTC