<
From version < 20.1 >
edited by Jerome
on 2010/04/23
To version < 20.2 >
edited by Sergiu Dumitriu
on 2010/12/04
>
Change comment: Fixed curl example about sending a file

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.jvelociter
1 +XWiki.Sergiu
Content
... ... @@ -160,7 +160,7 @@
160 160  For example, in order to create a page you might do the following:
161 161  
162 162  {{code language="xml"}}
163 -$ curl -u Admin:admin -X PUT -d "@newpage.xml" -H "Content-Type: application/xml" http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/NewPage
163 +$ curl -u Admin:admin -X PUT --data-binary "@newpage.xml" -H "Content-Type: application/xml" http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/NewPage
164 164  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
165 165  <page xmlns="http://www.xwiki.org">
166 166   <link rel="http://www.xwiki.org/rel/space" href="http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main"/>

Get Connected