Hi,

> On 27 Nov 2016, at 13:40, Volker Lapczynski <vl...@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#HPageresources
 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&xpage=plain

See 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Standard+URL+Format#HAction:view
 for more details.

Thanks
-Vincent


> Thanks Volker

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to