Closed fatgit closed 8 years ago
I try curl -d '{"host": "localhost", "duration": 600}' http://localhost:8080/schedule_downtime and my result {"content": "No JSON detected, did you set the Content-Type to application/json?", "success": false} what am I doing wrong?
I got it. Works fine curl -H "Content-Type: application/json" -d '{"host": "localhost", "duration": 600}' http://localhost:8080/schedule_downtime
Great Glad you got it! :)
I try curl -d '{"host": "localhost", "duration": 600}' http://localhost:8080/schedule_downtime and my result {"content": "No JSON detected, did you set the Content-Type to application/json?", "success": false} what am I doing wrong?