Skip to content

Instantly share code, notes, and snippets.

@AndiSHFR
Forked from creativepsyco/post-curl
Created July 15, 2016 18:36
Show Gist options
  • Save AndiSHFR/2100d8202d5928de6de318575a48770b to your computer and use it in GitHub Desktop.
Save AndiSHFR/2100d8202d5928de6de318575a48770b 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment