Re: $HTTP_RAW_POST_DATA

From: Date: Mon, 14 Aug 2000 04:08:41 +0000
Subject: Re: $HTTP_RAW_POST_DATA
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11555@lists.php.net to get a copy of this message
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 Edwards Animated Design, Melbourne http://www.animated.net.au/ Ph: (03) 98850990

« previous php.general (#11555) next »