Page 2 of 2
Re: Communicate with a webdav server [SOLVED]
Posted: Thu May 07, 2020 8:59 pm
by rabit
Added another WebDAV library to GitHub. This one is backed by tsNet. It has
currently the same features like the tsNet-free version.
See here:
https://github.com/revig/livecode-webdavlib-tsnet
Re: Communicate with a webdav server [SOLVED]
Posted: Thu May 07, 2020 9:21 pm
by FourthWorld
Super, Ralf - thanks for posting that!
Re: Communicate with a webdav server
Posted: Tue Mar 15, 2022 10:26 pm
by FourthWorld
bangkok wrote: ↑Mon Feb 17, 2020 8:24 am
Matthias Rebbe was kind enough to help me and he made a sample stack.
Here is his original stack and my version (with a few changes for full compatibility with NextCloud, along with a system to convert the XML received in Json Array, thanks to Trevor Devor's function ).
You can :
-upload a file
-download a file
-create a folder
-delete a folder/file
-list the content of a folder (method PROPFIND)
For the "upload" function, 1 of my 2 instances (the one with a problem with SSL certificate) refused to work properly ... Always timeout message.
But the parameter :
Code: Select all
put true into pSettings["force_basic_auth"]
... solved the issue (but I still do not know why).
Anyway. With those 2 stacks, it's a good begining to work with Web Dav systems and Livecode. Have fun.
And if you want to add your own "grain of salt" (new functions etc.) do not hesitate !
I have used this successfully in the past, but it's been a long time. Testing now with a Nextcloud 22.25 server I'm getting 401 errors.
Before I decide it's just me (and it may well be), anyone here using this successfully with a recent Nextcloud install?