Answers for "how to make post request"

1

javascript send post

var xhr = new XMLHttpRequest();
xhr.open("POST", yourUrl, true);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify({
    value: value
}));
Posted by: Guest on December-27-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language