Re: $HTTP_RAW_POST_DATA

From: Date: Tue, 06 May 2003 00:05:13 +0000
Subject: Re: $HTTP_RAW_POST_DATA
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146474@lists.php.net to get a copy of this message
"Bharathi_t" <Bharathi_T@Satyam.com> wrote in message news:384CF28B6CA05A47A21435516B1C03C1DE3D8B@bla.satyam.com... > Hi, > Can any one let me know the usage of $HTTP_RAW_POST_DATA. > Is this a variable which holds the posted data to the script? > Is it much similar to getting the post data in ASP thru the request object? This is the entity that was sent in a POST request. Most of the time, the post was due to an HTML form, with a content-type of "application/x-form-url-encoded" or "multipart/form-data". In this case, PHP automatically parses the request entity and places the appropriate entries in $_POST (and possibly $_FILES). However, a POST request could contain *any* sort of data,from text/xml to image/jpeg. In this case, PHP just puts the entire entity into the $GLOBALS['HTTP_RAW_POST_DATA'] variable. It's entirely up to you how to process it. As to how it relates to ASP, I don't know ASP well enought to answer that one... --- Seairth Jacobs seairth@seairth.com

« previous php.general (#146474) next »