Skip to content

Instantly share code, notes, and snippets.

@melvincarvalho
Created September 27, 2011 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melvincarvalho/1245594 to your computer and use it in GitHub Desktop.
Save melvincarvalho/1245594 to your computer and use it in GitHub Desktop.
XHR Put
xhr = new XMLHttpRequest();
xhr.open('PUT', 'https://melvincarvalho.data.fm/test5', false);
xhr.setRequestHeader('Content-Type', 'text/turtle; charset=UTF-8');
xhr.send('@prefix rdf: <http://www.w3.org/1999/02/22/rdf-syntax-ns#>.\n\n<#a> <#b> <#c>.');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment