anki-connect
anki-connect copied to clipboard
Content-Type declared and actual of request are not match
Like the example in the readme document:
curl localhost:8765 -X POST -d "{"action": "deckNames", "version": 6}"
The Content-Type declared on the header is application/x-www-form-urlencoded
, but actually is application/json
In other words, if you test
http POST localhost:8765 action=deskNames version=6
or
http -f localhost:8765 action=deskNames version=6
Neither of them will work properly.
I think this way that not in accordance with the specification is troubled.
Verify also that your call is correct; deckNames, not deskNames.