curl -k https://myserver/api/v1/rptoken --cert user.pem --key user.key -H "Content-type: application/x-www-form-urlencoded" -X POST -d "name=foo&name=bar"
I want to use the above curl call to verify the status code as well as catch the entire response from the server. How do I use superagent/supertest specifically, in a mocha test to do this ?