Skip to content

Instantly share code, notes, and snippets.

@softprops
Last active August 29, 2015 14:22
Show Gist options
  • Save softprops/0f479bef76ee25b4e1df to your computer and use it in GitHub Desktop.
Save softprops/0f479bef76ee25b4e1df to your computer and use it in GitHub Desktop.
# foo/bar isn't accepted
$ curl -I -H "Accept:foo/bar" "https://api.meetup.com/meetup-api-testing?key=$API_KEY"
HTTP/1.1 406 Not Acceptable
# ...but application/json is
$ curl -I -H "Accept:application/json" "https://api.meetup.com/meetup-api-testing?key=$API_KEY"
HTTP/1.1 200 OK
# curl sents */* by default
$ curl -v -I "https://api.meetup.com/meetup-api-testing?key=$API_KEY"
(snip)
> User-Agent: curl/7.37.1
> Host: api.meetup.com
> Accept: */*
>
< HTTP/1.1 200 OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment