I have problems with creating a content node with cURL. I execute the following command:
curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title" http://localhost:8080/content/mynode
But I can't see http://localhost:8080/content/mynode.html
as there is showed the following problem:
Resource dumped by HtmlRendererServlet
Resource path: /content/mynode
Resource metadata: {sling.resolutionPathInfo=.html, sling.resolutionPath=/content/mynode}
Resource type: foo/bar
Resource super type: -
Resource properties
title: some title
sling:resourceType: foo/bar
jcr:createdBy: admin
jcr:created:
http://localhost:8080/content/mynode.json
has following content:
{"title":"some title","sling:resourceType":"foo/bar","jcr:createdBy":"admin","jcr:created":"Thu Jul 04 2013 21:24:36 GMT+0300","jcr:primaryType":"sling:Folder"}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…