Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xhr = new XMLHttpRequest();
- xhr.open("POST", "http://<your server>/sitecore/api/ssc/item/sitecore%2Fcontent%2Fhome ");
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.onreadystatechange = function () {
- if (this.readyState == 4) {
- alert('Status: '+this.status+'nHeaders: '+JSON.stringify(this.getAllResponseHeaders())+'nBody: '+this.responseText);
- }
- };
- xhr.send("{ n "ItemName": "Home", n "TemplateID": "76036f5e-cbce-46d1-af0a-4143f9b557aa", n "Title": "Sitecore", n "Text": "\r\n\t\tu003Cpu003EWelcome to Sitecoreu003C/pu003E\r\n" n}");
Add Comment
Please, Sign In to add comment