JSON, URL-encode, and UTF-8

Peter W A Wood peterwawood at gmail.com
Fri Aug 21 01:25:25 CEST 2015


Jacque

> On 21 Aug 2015, at 05:53, J. Landman Gay <jacque at hyperactivesw.com> wrote:
> 
> Here's what I do:
> 
>  set the httpHeaders to "content-type: application/json"
>  put convertToJSON() into tData -- produces valid JSON
>  put "json=" before tData
>  post tData to kServerURL

You’re content is no longer valid JSON once you have inserted the “json=“ (at the PHP developer’s request). There may be a conflict between the header and the actual content. What happens if you remove the line setting the httpHeaders?

Regards

Peter



More information about the use-livecode mailing list