On Wed, Dec 16, 2009 at 1:05 PM, Alexander Klimetschek <[email protected]> wrote: > It should work, ending up with a subnode file of type nt:file, but the > curl command should start like this:
Thanks for the quick replay. Here is what I tried this time: $ curl -F"[email protected]" -F"sling:resourceType=foo/bar" -F"title=some title" http://admin:ad...@localhost:8080/org.apache.sling.launchpad.webapp-5-incubator/content/mynode4 That command returns html which includes "Content created /content/mynode4" Browsing to http://localhost:8080/org.apache.sling.launchpad.webapp-5-incubator/mynode4.html Results in the following output: Resource dumped by HtmlRendererServlet Resource path: /content/mynode4 Resource metadata: {sling.resolutionPathInfo=.html, sling.resolutionPath=/content/mynode4} Resource properties title: some title sling:resourceType: foo/bar jcr:primaryType: nt:unstructured
