Using Curl with Sling has been created by Alexander Klimetschek (Jul 04, 2008).

Content:

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.

POSTing:

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

Reply via email to