I have created a little php application which upload a file by using curl to make a webdav call using PUT method. That’s working great.
However, I can’t manage to use API to create a folder (the idea is to create a folder from php and then upload the file on this new folder).
I have read that I should use OCP instead of OCS or webdav. Also I think I have found the documentation of the function that I have to all: ownCloud Documentation Overview but I haven’t found any example on how can I make this call from php.
I am trying to create a folder using owncloud API in java. I get “pkix path building failed sun.security.provider.certpath.suncertpathbuilderexception” because I guess org.apache.commons httpClient cannot trust this server. I tried to solve this by registering self signed certificate to CloseableHttpClient. But I guess CloseableHttpClient does not support jackrabbit MKCOL. Any suggestions on how I can solve this?