Hello Fabio!
I solved the TAG problem, but still fighting with Umlauts.
TAGs solved:
In Autohotkey environment i have to "escape" commas, they must be escaped as
shown here:
tags=foo`,bar
; --- create a TAG--- Working ;)
curl.exe -u "Admin:admin" -X POST -H "Content-type:
application/x-www-form-urlencoded" --data-ascii
"className=TagClass&property#tags=foo`,bar"
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/%page%/objec…
Umlaut:
My code works without umlauts, but with umlaut i get a "0000: HTTP/1.1 405
Method Not Allowed"
page = test
page = øæåØÆÅ
;-make-
Runwait curl -u "Admin:admin" -X PUT -d "(a)1.xml" -H
"Content-type:
application/xml; charset=UTF-8"
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/%page%
;-upload-
RunWait curl -u "Admin:admin" -T "wordlist.txt"
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/%page%/attac…
;-make tag-
RunWait curl -u "Admin:admin" -X POST -H
"Content-type:application/x-www-form-urlencoded;charset=UTF-8"
--data-binary "className=TagClass&property#tags=test"
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/%page%/objec…
;-write tag-
RunWait curl -u "Admin:admin" -X PUT -H "Content-type:
text/plain;charset=UTF-8"
--data-binary "%page%`,%page%"
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/%page%/objec…
When %page% with Umlauts i get:
http://xwiki.475771.n2.nabble.com/file/n5638047/trace-make.txt
trace-make.txt
I tried a DOS-batch with curl UTF-8 encodet getting the same results. Is
there a mismatch with codepages?
Yours Volker
--
View this message in context:
http://xwiki.475771.n2.nabble.com/XWiki-RESTful-API-TAGS-and-unicode-tp5540…
Sent from the XWiki- Users mailing list archive at
Nabble.com.