Skip to content

Instantly share code, notes, and snippets.

@forl
Created July 22, 2017 16:41
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 forl/e18658464f1b5d696c078e2c480ca830 to your computer and use it in GitHub Desktop.
Save forl/e18658464f1b5d696c078e2c480ca830 to your computer and use it in GitHub Desktop.
Why doesn't a GET request have a body?
XMLHttpRequest.send() accepts an optional argument for the request body. If the request method is GET or HEAD, the argument is ignored and request body is set to null.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment