Hi,
On 27 Nov 2016, at 13:40, Volker Lapczynski <vlap1@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#HPageresou... 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&xpa... See http://platform.xwiki.org/xwiki/bin/view/DevGuide/Standard+URL+Format#HActio... for more details. Thanks -Vincent
Thanks Volker