[xwiki-users] xWiki RESTful/HTTP Connection

2016-04-17 Thread Tobi
vider.setCredentials( new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT, AuthScope.ANY_REALM, AuthScope.ANY_SCHEME), new UsernamePasswordCredentials("Tobi", "mypass")); CloseableHttpClient httpclient = HttpClients.custom() .set

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 not

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

2016-04-18 Thread Tobi
// Get request example HttpClient httpClient = getClient("xwiki.aircr.ru", 8080, "Tobi", "gaben1337"); GetMethod getMethod = new GetMethod("http://xwiki.aircr.ru/xwiki/bin/view/Main/";); getM

[xwiki-users] xWiki RESTful API HttpPut

2016-04-28 Thread Tobi
Hello, for some reason my program freezes during second/third use of my Uploading Page method (RESTful API). How can I fix this? Here is my authentication method: public void connectMethod(CloseableHttpClient client, String scheme, String host, Integer port, String login, String password) throws