Skip to content

Instantly share code, notes, and snippets.

View ToddHoff's full-sized avatar

Todd Hoff ToddHoff

  • Possibility Outpost
View GitHub Profile
You are missing header "Accept: application/json". The server refuses
to reply unless the client explicitly accepts application/json.
BTW, curl is better. It understands SNI like other modern browsers and
doesn't need to ignore the SSL certificate check:
$ curl -H 'Content-Type: application/json' -H 'Accept:
application/json' --data