Communicate with a webdav server [SOLVED]

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

rabit
Posts: 40
Joined: Wed May 31, 2006 8:30 am

Re: Communicate with a webdav server [SOLVED]

Post by rabit » Thu May 07, 2020 8:59 pm

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
-- Ralf Bitter

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Communicate with a webdav server [SOLVED]

Post by FourthWorld » Thu May 07, 2020 9:21 pm

rabit wrote:
Thu May 07, 2020 8:59 pm
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
Super, Ralf - thanks for posting that!
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Communicate with a webdav server

Post by FourthWorld » Tue Mar 15, 2022 10:26 pm

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?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Internet”