Answer the question
In order to leave comments, you need to log in
What is the correct way to work with CURL via SSH?
Hello. Guys, please tell me how to write curl commands in ssh?
Here this command uploads a file to yadisc, it works
Where $yadisc_dir is a folder
curl --user $yadisk_email:$yadisk_pass -T $filebackup https://webdav.yandex.ru/$yadisc_dir
How can I delete this uploaded file now?
I write like this, it doesn't work.
curl --user $yadisk_email:$yadisk_pass -Q rm $filebackup https://webdav.yandex.ru/$yadisc_dir
And I want to create a folder.
I write like this, it doesn't work either.
curl --user $yadisk_email:$yadisk_pass -Q mkdir papka https://webdav.yandex.ru/$yadisc_dir
Tell me
, is this possible or impossible to do in principle, or is there something wrong with my syntax?
I found commands how to do it all osxh.ru/terminal/command/curl , but it doesn't work!
Answer the question
In order to leave comments, you need to log in
the commands are cool
, but what, does Yandex's WebDav work using the FTP protocol?
According to https://tech.yandex.ru/disk/doc/dg/concepts/api-me... you need to use DELETE and MKCOL to delete/create a directory respectively
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question