Skip to content

DataAPI SDK english MT.DataAPI Implementation notes

Taku AMANO edited this page Jul 10, 2013 · 3 revisions

Implementation notes

Sending POST request

If the FormData object is available in browser, the DataAPI object sends request body by using the FormData object. As a result, all the POST requests are sent with "multipart/form-data".

If the FormData object is not available in browser, the DataAPI object sends request body with "application/x-www-form-urlencoded".

Avoiding browser cache

If "cache" option is true, the DataAPI sends GET/POST request simply.

If "cache" option is false, the DataAPI sends GET/POST request with the "_" parameter. The value of the "_" parameter is the current timestamp (microsecond).

Clone this wiki locally