Skip to content

Instantly share code, notes, and snippets.

@matzew
Created June 24, 2013 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matzew/ea11d1a9532f2d75745a to your computer and use it in GitHub Desktop.
Save matzew/ea11d1a9532f2d75745a to your computer and use it in GitHub Desktop.
curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"loginName": "admin", "password":"123"}' http://securemaster-mwessendorf.rhcloud.com/ag-push/rest/auth/login
curl -v -b cookies.txt -c cookies.txt -v -H "Accept: application/json" -H "Content-type: application/json" -X GET http://securemaster-mwessendorf.rhcloud.com/ag-push/rest/applications
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment