Date: 08/14/00
- Next message: php3 <email protected>: "Re: [PHP] htpasswd"
- Previous message: php3 <email protected>: "Re: [PHP] modifying drop-downs"
- In reply to: Rasmus Lerdorf: "Re: [PHP] $HTTP_RAW_POST_DATA"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Rasmus Lerdorf wrote:
> > Has anyone gotten $HTTP_RAW_POST_DATA to work? It seems to be defined
> It is only set if the encoding type of the data is an unknown mime type.
I've tried setting an unknown mime type, but I get the same thing. Here
is what I'm doing. I'm injecting this request with the help of netcat.
---------------------------------------------
POST /gold/posttest.php HTTP/1.1
Host: phaedrus
Content-Type: mime/completecrap
<?xml version="1.0" encoding="UTF-8"?>
<x/>
---------------------------------------------
it's being recieved by a script that looks like this
---------------------------------------------
<?
header("Content-type: text/plain");
if(isset($HTTP_RAW_POST_DATA)) {
print "HTTP_RAW_POST_DATA is set, and it is:\n";
print $HTTP_RAW_POST_DATA;
}
//phpinfo();
?>
---------------------------------------------
The result is something like this:
---------------------------------------------
HTTP_RAW_POST_DATA is set, and it is:
---------------------------------------------
basically HTTP_RAW_POST_DATA is defined, but has a null "" string. :-(
TIA,
-- Simon EdwardsAnimated Design, Melbourne http://www.animated.net.au/ Ph: (03) 98850990
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: php3 <email protected>: "Re: [PHP] htpasswd"
- Previous message: php3 <email protected>: "Re: [PHP] modifying drop-downs"
- In reply to: Rasmus Lerdorf: "Re: [PHP] $HTTP_RAW_POST_DATA"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

