Monday 26 August 2013

How do I use postman to send a POST curl command with data like "{\"name\": \"John Smith\"}"

How do I use postman to send a POST curl command with data like
"{\"name\": \"John Smith\"}"

$ curl -H "X-Auth-Token: 97f0ad9e24ca5e0408a269748d7fe0a0" -d "{\"name\":
\"John Smith\"}" http://localhost:3000/collectionapi/players
I am new to postman but when i try and add these parameters to chrome i
get the following error when trying a POST request:
{ "error": "SyntaxError: Unexpected end of input" }

No comments:

Post a Comment