Bug #18236 Updated: EXACT HTTP POST data access

From: Date: Tue, 09 Jul 2002 09:00:30 +0000
Subject: Bug #18236 Updated: EXACT HTTP POST data access
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13577@lists.php.net to get a copy of this message
ID: 18236 Updated by: hholzgra@php.net Reported By: foobardotcom@poczta.onet.pl -Status: Open +Status: Feedback Bug Type: Feature/Change Request Operating System: Linux cyberhq 2.4.19-pre6 #2 SMP PHP Version: 4.2.1 New Comment: maybe $HTTP_RAW_POST_DATA is what you are looking for? btw: please define "behave correct on select multiple" what is so bad about specifying that you are going to fill an array? the alternative would be to create arrays if multiple values are set while single selections would still become simple strings as there is no way for PHP to know that it was generated from a <select multiple> so it's just a tradeof: having to type two more characters as element name or taking care that both string and array inputs are supported in the form processing code our approach is obviously the first one Previous Comments: ------------------------------------------------------------------------ [2002-07-09 02:54:03] foobardotcom@poczta.onet.pl Hello! Plase, *** excuse my english first *** HTTP request looks like that (everything in single quotes for showing where are whitespaces - as you see, it has last newline character): 'POST /test.php HTTP/1.0 Content-Length: 13 Content-Type: application/x-www-form-urlencoded m=1&m=2&m=3 ' Script looks like that: <?php header("Content-type: text/plain"); echo "got request: `" . get_request_data() . "'"; ?> and script should generate output like that: got request: `POST /test.php HTTP/1.0 Content-Length: 13 Content-Type: application/x-www-form-urlencoded m=1&m=2&m=3 ' I just want to make possible query-string parsing, even if POST method is used, because all people today have to use `arr[]' name in select multiple forms especially for PHP... I want to make possible PHP behave correct on select multiple even if method isn't GET (query string in GET method can be parsed manually). I think, PHP should make access to everything low-level and make possible writting low-level based libraries for people like me - purists :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18236&edit=1

« previous php.bugs (#13577) next »