Created
July 22, 2017 16:41
-
-
Save forl/e18658464f1b5d696c078e2c480ca830 to your computer and use it in GitHub Desktop.
Why doesn't a GET request have a body?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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