docs/src/get.md

Thu, 03 Aug 2017 10:37:52 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 03 Aug 2017 10:37:52 +0200
changeset 267
171498cb2137
parent 266
8c44c5919691
child 282
3070d72f54af
permissions
-rw-r--r--

some mingw fixes

fflush after printf's in assistant.c
avoid redefinition of file mode macros
correct include order for winsucks2.h

dav get
=======

**`get [-pcR] [-o <file>] [-u <date>] <url>`**

Downloads a resource. It can also download collections and its child resources.
When downloading a single resource, the default local file name is the resource
name. When downloading collections, it does NOT create a local directory with
the collection's name and places it children in there, but it downloads the
children directly to the current working directory.

**`-p`** disable file name and content decryption. You get exactly what is stored
  on the server.
  
**`-c`** enable file name and content decryption

**`-R`** download a collection

**`-o <file>`** specify the local output file. A **-** indicates stdout

**`-u <date>`** download only files which are modified since the specified date. Uses the http date format

mercurial