anki-connect icon indicating copy to clipboard operation
anki-connect copied to clipboard

Content-Type declared and actual of request are not match

Open realvect0r opened this issue 5 years ago • 1 comments

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.

realvect0r avatar Sep 16 '19 04:09 realvect0r

Verify also that your call is correct; deckNames, not deskNames.

snoyes avatar May 01 '20 23:05 snoyes