var xhr = Ti.Network.createHTTPClient();
xhr.onload = function() {
Ti.API.info(this.responseText);
}
var payload = {
"foo":{
"foo":"bar"
}
};
xhr.open('POST',"http://requestb.in/wfvbbowf");
xhr.setRequestHeader('Content-Type','application/json')
xhr.send(JSON.stringify(payload));
Last active
February 23, 2016 18:11
-
-
Save tzmartin/47150cbe4190b43cde59 to your computer and use it in GitHub Desktop.
Example Titanium JSON POST
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment