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
MKCOL /files/01Folder/ HTTP/1.1
Host: ~airstash_dot_net
Thanks for any help,
Eric