Apache Sling > Developing for Sling > Using Curl with Sling
Added by Alexander Klimetschek, last edited by Alexander Klimetschek on Jul 07, 2008  (view change)

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.