Re: [xwiki-users] xWiki RESTful/HTTP Connection

2016-04-17 Thread Tobi
Thank you for your response! As far as I know there is no PutMethod (which you use in your code) class in new versions of Apache's HTTP library. Same goes for many other methods which. Or maybe I'm just missing the point and there IS a library with required Classes and Methods of which I know

Re: [xwiki-users] xWiki RESTful/HTTP Connection

2016-04-17 Thread Mohamed Boussaa
Hi, You can use the new version of Apache's HTTP library, as follows, hope it'll help you. public class RestTest { /** * Create and initialize the http client. * * @return an HttpClient object */ HttpClient getClient(host, port, username, password) { HttpClient httpClient

[xwiki-users] xWiki RESTful/HTTP Connection

2016-04-17 Thread Tobi
Hello, I was trying to write a program which would upload new pages on my wiki. I was following these instructions http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI , but unfortunately most of the examples use old version of Apache's HTTP library, so they are not very useful for