1) Give a description of the problem
I am trying to send a POST request with json data to an endpoint
2) What is the expected behavior?
I get a 200 response
3) What is happening/not happening?
I get ‘bad request’
I know that this curl statement works fine calling the same endpoint:
curl -X POST --header “Content-Type: application/json” --data ‘{“command”: “connect”, “port”: “/dev/ttyUSB0”, “printerProfile”: “_default”, “baudrate”: 115200}’ 192.168.1.26/api/connection?apikey=12345abc