zorkian / nagios-api

A REST-like, JSON interface to Nagios
BSD 3-Clause "New" or "Revised" License
586 stars 173 forks source link

{"content": "No JSON detected, did you set the Content-Type to application/json?", "success": false} #61

Closed fatgit closed 8 years ago

fatgit commented 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?

fatgit commented 8 years ago

I got it. Works fine curl -H "Content-Type: application/json" -d '{"host": "localhost", "duration": 600}' http://localhost:8080/schedule_downtime

zorkian commented 8 years ago

Great Glad you got it! :)