Hello. I am trying to post JSON object to my heroku web app which, among others, has a function to parse JSON and returns some sort of an answer. Posting normal text data works fine, GET request works fine. I am just having trouble posting JSON data.
Here are the commands I use:
POST /processjson HTTP/1.1 Host: nemanjalexus.herokuapp.com Content-Type: application/json Content-Length: 78
CTRL-Z (character that finishes the entry)
I receive the following answer from the server:
+CIPRCV:134,HTTP/1.1 505 HTTP Version Not Supported Connection: close Server: Cowboy Date: Sun, 29 Mar 2020 09:50:26 GMT Content-Length: 0
I think that my problem is caused by HTTP headers I use, but I can't figure it out.
Maybe someone else has some ideas.