nd - Tiny little command line WebDAV interface
Contents
Bugs
A maintainer of the Debian package has implemented Digest authentication on top of the original software.
However, the upstream source uses the nanoHTTP code from libxml2 to implement the HTTP transport. Due to
properties inherent in that code for detecting and following redirected target sites, there is no way to
pull out the new address in order to insert it into the hashes necessary for the Digest method. Nd will
therefore incorrectly answer with 'Bad request' to any method call aimed at such sites. Using the correct
logical name for the target will, however, produce a correct response from Nd.
Description
nd provides a simple command line interface to the RFC 2518 (WebDAV) server. If no option is specified,
HTTP GET command is issued and writes response data to the standard output.
The options are as follows:
-cdest_url
COPY url to the dest_url. Use lock token if -t is specified.
-f Force override the content even when the MOVE or COPY target already exits.
-v View property information of url by PROPFIND. With -g option, only the specified property is
displayed.
-pfile PUT file content to the url. Use lock token if -t is specified.
-gname Specify the property name for -v option.
-ename=value
Edit the property with name to value using PROPPATCH .
-Nnamespace-url
Specify the property namespace URL for -e or -g option.
-Pfile POST file content to the url. -T is used for the Content-Type.
-Tcontent_type
Use content_type as a Content-Type field value of the POST request. Default is
`application/x-www-form-urlencoded'.
-d DELETE url. Use lock token if -t is specified.
-l LOCK url. Use -o as owner, -s as scope, -i as timeout.
-oowner
Specify lock owner. Default is USER environment variable.
-sscope
Specify lock scope (`exclusive' or `shared'). Default is `exclusive'.
-itimeout
Specify lock timeout interval. Default is `Infinite'.
-u UNLOCK url. -t option is required.
-ttoken
Specify the lock token.
-r Set command execution `Depth' as `Infinity'.
-arealm
Specify authentication realm.
-Arealm
Specify proxy authentication realm.
-k MKCOL url-mdest_url
MOVE url to the dest_url. Use lock token if -t is specified.
-S Print output using s-expression.
Environment Variables
http_proxy,HTTP_PROXY
Specify HTTP proxy.
USER When manipulating a lock without an explicit owner option, the value of USER is used to set the
owner of the file lock.
Name
nd - Tiny little command line WebDAV interface
See Also
libxml(4). February 25, 2002 ND(1)
Synopsis
nd [options] url
