Skip to content

Request bodies with GET and HEAD #390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zackkain opened this issue Sep 22, 2016 · 1 comment
Closed

Request bodies with GET and HEAD #390

zackkain opened this issue Sep 22, 2016 · 1 comment

Comments

@zackkain
Copy link

https://fetch.spec.whatwg.org/#request-class

If either init's body member is present and is non-null or inputBody is non-null, and request's method is GET or HEAD, throw a TypeError.

GET with a request body is allowed by the HTTP1.1 spec
Message-Body: https://tools.ietf.org/html/rfc2616#section-4.3
Get: https://tools.ietf.org/html/rfc2616#section-9.3
Keywords: https://www.ietf.org/rfc/rfc2119.txt

And APIs like ElasticSearch suggest it (though they have a POST fallback).
https://www.elastic.co/guide/en/elasticsearch/guide/current/_empty_search.html

@zackkain
Copy link
Author

Whoops, my issues search didn't include "closed"
#83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant