Skip to content

Instantly share code, notes, and snippets.

@creativepsyco
Created March 5, 2012 18:02
Show Gist options
  • Save creativepsyco/1979889 to your computer and use it in GitHub Desktop.
Save creativepsyco/1979889 to your computer and use it in GitHub Desktop.
POST request Via CURL in MAC OS X
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"userid": "mohit", "password":"password"}' http://mmedwebdemo.ddns.comp.nus.edu.sg:8080/comp.nuhs.jaxb/api/usr/login
@Dwylie008
Copy link

curl -X GET 'https://api.newrelic.com/v2/alerts_conditions.json'
-H 'X-Api-Key:{2466d11ec039670c7474d5d6d557668735c53a6f8c74d61' -i
-G -d 'policy_id=98489'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment