Instantly share code, notes, and snippets.

What would you like to do?
Send a curl request to update glu's desired model
$ curl -D - -d '{"entries": [],"fabric": "glu-dev-1"}' -H "Content-Type: text/json" http://glua:password@glu:8080/console/rest/v1/glu-dev-1/system/model
HTTP/1.1 201 Created
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=372A5EC836E06F574BB301AB9902C720; Path=/console
Set-Cookie: rememberMe=deleteMe; Path=/console; Expires=Sun, 26-Dec-2010 09:11:28 GMT
Set-Cookie: fabric=Kqs9Bg72Lg1z; Expires=Tue, 27-Dec-2011 09:11:29 GMT; Path=/console
Set-Cookie: product=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/console
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked
Date: Mon, 27 Dec 2010 09:11:29 GMT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment