Post Example with ContentType?
i think there's something wrong with this code. Instructions for the API say to
set the Content-Type header of your request to application/x-www-form-urlencoded
but i don't think i'm doing it correctly.
$.post(
"../api.php?action=edit&title=Portal:TagDescriptions§ion=2&summary=Hello%20World",
{ Text: "Hello, world.",
token:"c30460d9159a5e2eccca60944ef286405b2393d1%2B%5C%5C" },
function(data) {
$('#lblDescription').html(data);
},
"application/x-www-form-urlencoded"
);