Hi, I forget to add the packages to import in my previous code.
import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.GetMethod; import org.apache.commons.httpclient.methods.PutMethod; import org.apache.commons.httpclient.methods.PostMethod; import org.apache.commons.httpclient.UsernamePasswordCredentials; import org.apache.commons.httpclient.auth.AuthScope; import org.apache.commons.httpclient.NameValuePair; Find the API of the PutMethod here: https://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/methods/PutMethod.html Regards, Mohamed. On Sun, Apr 17, 2016 at 10:02 PM, Tobi <gman...@yandex.ru> wrote: > 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 nothing about (if it's true then I > would > be really grateful if your provide me a link). > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/xWiki-RESTful-HTTP-Connection-tp7599026p7599028.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users