Skip to content

Instantly share code, notes, and snippets.

@rantav
Created December 27, 2010 09:15
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 rantav/755981 to your computer and use it in GitHub Desktop.
Save rantav/755981 to your computer and use it in GitHub Desktop.
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
id=f9613355767d4ae9caaef4c16be29cb070f69027
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment