1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Httpie で Synology の WebDAV にアクセスする

Last updated at Posted at 2021-03-03

こちらと同じことを Httpie で行いました。
cadaver で Synology の WebDAV にアクセスする
curl で Synology の WebDAV にアクセスする

ファイルのアップロード

URL=https://example.synology.me:5006/homes/scott/tmp/tmp01.txt
#
http --auth scott:secret PUT $URL @tmp01.txt

ファイルのダウンロード

URL=https://example.synology.me:5006/homes/scott/tmp/tmp02.txt
#
http  --auth scott:secret $URL > tmp02.txt

$HOME/.netrc を作成すれば、次でオーケーです。

より安全なファイルのアップロード

URL=https://example.synology.me:5006/homes/scott/tmp/tmp01.txt
#
http PUT $URL @tmp01.txt

より安全なファイルのダウンロード

URL=https://example.synology.me:5006/homes/scott/tmp/tmp02.txt
#
http $URL > tmp02.txt

$HOME/.netrc

$HOME/.netrc
machine example.synology.me
  login scott
  password secret
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?