$HTTP_RAW_POST_DATA

From: Date: Sun, 23 Jul 2000 18:46:36 +0000
Subject: $HTTP_RAW_POST_DATA
Groups: php.dev php.general 
Request: Send a blank email to php-dev+get-25601@lists.php.net to get a copy of this message
Anyone have any ideas on this one?? Jason > In php, use the variable $HTTP_RAW_POST_DATA, it should have what > you're looking for. $HTTP_RAW_POST_DATA is empty. www.faqts.com seems to have the answer to why: > To do this you must set the content type in the request header to > something PHP doesn't recognize. For example, "Content-Type: xyz". > If php3 doesn't recognize the content type it will assign the > posted data to: $HTTP_RAW_POST_DATA which is then readily available > in the script. Unfortunately I have no control of the Content-Type. Internet Explorer sets it to "application/x-www-form-urlencoded". That's the same as an HTML Form Post (which of course it isn't). User-Agent is set to "PostFavorites".

« previous php.dev (#25601) next »