Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Note
titleThis page is *not* meant for asking questions

Use the Sling users mailing lists for that, see http://sling.apache.org/project-information.html#mailing-listsImage Removed - this page is about answers. Thanks!

If you find anything wrong in the Sling site or in and on the Wiki, do not hesitate to also contact the user's mailing list. Thanks.

...

Code Block
curl -F"greetings=Hello, World!" -F"multmulti=first" -F"multi=second" -F"translations/en=Hello" -F"translations/zh=你好" http://admin:admin@localhost:8080/content/../../..

...

Now you should be able to see an HTML version of the resource at http://localhost.local:8080/content/greet. This script matches the sling:resourceType we set and the HTTP method we used. Note that resourceType matches must be exact.

How

...

do I create a multi-value property with a single value, in HTTP?

Use this:

Code Block
curl -u admin:admin -F'foo=bar' -F'foo@TypeHint=String[]' http://localhost:8080/some/path

...