This is all about hacking around with a running Sling and just a curl on the command line. It concentrates on the default servlets in Sling that provide json representations of JCR nodes and properties and allow for POSTing with normal forms to update properties.

GETting a json representation:

The "-s" means silent, ie. no download progress indicator displayed.

The Sling default servlet may respond with a 300 and a json array containing the deepest level of recursion that is possible, as infinity can return a lot of data on a large repository.

POSTing:

Add parameter "-v" to see the HTTP headers in the console.

  • No labels

1 Comment

  1. An alternative to curl might be this Firefox extension: https://addons.mozilla.org/en-US/firefox/addon/2691, called Poster which provides a graphical interface to creating HTTP requests.