Skip to content

Instantly share code, notes, and snippets.

@horacioibrahim
Created February 2, 2016 07:02
Show Gist options
  • Select an option

  • Save horacioibrahim/715ad450f4041df89dd4 to your computer and use it in GitHub Desktop.

Select an option

Save horacioibrahim/715ad450f4041df89dd4 to your computer and use it in GitHub Desktop.
xhr = new XMLHttpRequest();
xhr.open("POST", "/login", true);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr.send("username=student&password=secret");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment