restify example TODO server not sending responses -


i'm new @ , developing first api server. wanted see example of post request installed restify 3.0.3 , tried run todo server example. see requests logged @ server no response sent. i'm using sample curl requests provided , server running on cloud9. curl running on windows 7.

for example, i've tried:

can help?

i saw same behavior when using postman exercise example.

setting postman header accept:text/plain or accept:application/json worked me.

btw: if set accept:text/html, should receive helpful response:

{   "code": "notacceptableerror",   "message": "server accepts: application/todo,application/json,text/plain,application/octet-stream,application/javascript" } 

hope helps.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -