This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

JSON over HTTP

Hi,

I am using AJAX JSON over HTTP to send using CGI.
It is working. Does Keil web server CGX supports JSON RPC.

Currently I have to Post JSON using CGX using

$.ajax({ type: "POST", url: "xmlHttp.cgx", data: post_data, contentType: "text/xml", datatype : "text", success: function(data) {

}, error: function (xhr, ajaxOptions, thrownError) {

} });

contentType is xml. If I set JSON/application then I do not get cgi_process_data call.

Parents
  • Thanks for reply.

    I will try ajax calls with
    contentType: "json/application"
    and datatype : "json"

    instead of

    $.ajax({ type: "POST", url: "xmlHttp.cgx", data: post_data, contentType: "text/xml", datatype : "text", success: function(data) {

    }, error: function (xhr, ajaxOptions, thrownError) {

    } });

    then I will let you know if I get call for CGI post in keil.

Reply
  • Thanks for reply.

    I will try ajax calls with
    contentType: "json/application"
    and datatype : "json"

    instead of

    $.ajax({ type: "POST", url: "xmlHttp.cgx", data: post_data, contentType: "text/xml", datatype : "text", success: function(data) {

    }, error: function (xhr, ajaxOptions, thrownError) {

    } });

    then I will let you know if I get call for CGI post in keil.

Children