I have want to do something like this to mimic a form post:
$.ajax({
url:url,
type: "PUT",
async:true,
cache:false,
data:
{'end':end,'duration':duration}
}
However, the data param only take data as a string, and the serialize() function only works if there is already a form.
Is there any way to parse the json array into a data string? (Multipart form)