Hi,
On 27 Nov 2016, at 13:40, Volker Lapczynski
<vlap1(a)gmx.net> wrote:
I use Autohotkey to get text from a page with this url:
UrlDownloadToFile, http://
Server:8080/xwiki/rest/wikis/wiki/subwiki/Main/pages/MyPage?outputSyntax=plain&xpage=plain
C:\temp\MyText.txt
How do i do this with curl from a *SUBWIKI*?
curl -u Admin:admin
"Server:8080/xwiki/rest/wikis/wiki/*subwiki*/Main/pages/MyPage?outputSyntax=plain&xpage=plain"
is not working
See
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HPagereso… for
the REST format
For example:
http://www.xwiki.org/xwiki/rest/wikis/platform/spaces/Main/pages/WebHome
This will return the XML or JSON for the page.
If what you want is the content as plain text you can simply use the /view/ action
(instead of the REST API) as in:
http://platform.xwiki.org/xwiki/bin/view/Main/WebHome?outputSyntax=plain&am…
See
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Standard+URL+Format#HActi… for
more details.
Thanks
-Vincent
Thanks Volker