Yeah thanks, that is exactly what I ended up with.
Regards, Andrew Scott <http://www.andyscott.id.au/> http://www.andyscott.id.au/ From: [email protected] [mailto:[email protected]] On Behalf Of MrBuzzy Sent: Monday, 15 August 2011 7:04 PM To: [email protected] Subject: Re: [cfaussie] Anyone who knows PHP well, how is this done in CF? I think you're on the right track. "php://input is a read-only stream that allows you to read raw data from the request body. In the case of POST requests, it is preferable to <http://www.php.net/manual/en/reserved.variables.httprawpostdata.php> $HTTP_RAW_POST_DATA as it does not depend on special php.ini directives." So you need; <cfset updates = DeserializeJSON(GetHTTPRequestData().content)> And note the CFDocs too; Structure element Description content Raw content from form submitted by client, in string or binary format. For content to be considered string data, the FORM request header "CONTENT_TYPE" must start with "text/" or be special case "application/x-www-form-urlencoded". Other types are stored as a binary object. -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
