WebDav client making collections/directories

Are you using LiveCode to create server scripts or CGIs?

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Posts: 30
Joined: Tue Mar 20, 2012 10:44 pm

WebDav client making collections/directories

Post by AZSun » Sat Apr 07, 2012 11:09 pm

I've been trying to use LC to connect wirelessly to an Airstash WebDav server. I have successfully written files and read files from the sd card in the Airstash using put url in LiveCode. It was so easy, but I may have bitten off to much to chew.

I have updated the firmware on the Airstash to the newest version which supports folders being made with MKCOL. (I tested the Airstash server with the ifiles app and the Airstash can now make collections when requested. Before the upgrade, it could not.)

Now, I'd like to be able to create folders with a LiveCode app. I'm not sure I'm understanding how to send the headers to the WebDav server. Here's what I tried...

Code: Select all

on mouseUp
   set the httpHeaders to field "01header" & return & field "02header" & return & return
   post httpheaders to URL "~.airstash_dot_net"
end mouseUp
Fields 01header and 02header hold the lines
MKCOL /files/01Folder/ HTTP/1.1
Host: ~airstash_dot_net

Thanks for any help,

Post Reply

Return to “CGIs and the Server”