File: nd.1

package info (click to toggle)
nd 0.8.2-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,164 kB
  • ctags: 377
  • sloc: ansic: 7,810; sh: 717; makefile: 392
file content (185 lines) | stat: -rw-r--r-- 4,277 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
.\" Copyright (c) 2002 Yuuichi Teranishi <teranisi@gohome.org>
.\"
.\" Permission is hereby granted, free of charge, to any person obtaining
.\" a copy of this software and associated documentation files (the
.\" "Software"), to deal in the Software without restriction, including
.\" without limitation the rights to use, copy, modify, merge, publish,
.\" distribute, sublicense, and/or sell copies of the Software, and to
.\" permit persons to whom the Software is furnished to do so, subject to
.\" the following conditions:
.\"
.\" The above copyright notice and this permission notice shall be
.\" included in all copies or substantial portions of the Software.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
.\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
.\" NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
.\" LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
.\" OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
.\" WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
.\"
.TH ND 1 "February 25, 2002"
.SH NAME
nd \- Tiny little command line WebDAV interface
.\"
.SH SYNOPSIS
nd
.RI [ options ]
.RI url
.\"
.SH DESCRIPTION
.B 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.
.PP
The options are as follows:
.TP 8
.BI \-c " dest_url"
COPY
.IR url
to the
.IR dest_url .
Use lock token if 
.B \-t
is specified. 
.TP 8
.BI \-f
Force override the content even when the MOVE or COPY target already exits.
.TP 8
.BI \-v
View property information of
.IR url
by PROPFIND. With 
.B \-g
option, only the specified property is displayed.
.TP 8
.BI \-p " file"
PUT
.IR file
content to the
.IR url .
Use lock token if 
.B \-t
is specified.
.TP 8
.BI \-g " name"
Specify the property name for
.B \-v
option.
.TP 8
.BI \-e " name=value"
Edit the property with name to value using PROPPATCH .
.TP 8
.BI \-N " namespace-url"
Specify the property namespace URL for 
.B \-e
or
.B \-g
option.
.TP 8
.BI \-P " file"
POST
.IR file
content to the
.IR url .
.B \-T
is used for the Content-Type.
.TP 8
.BI \-T " content_type"
Use
.IR content_type
as a Content\-Type field value of the POST request.
Default is `application/x\-www\-form\-urlencoded'.
.TP 8
.BI \-d
DELETE
.IR url .
Use lock token if 
.B \-t
is specified. 
.TP 8
.BI \-l
LOCK
.IR url .
Use 
.B \-o
as owner,
.B \-s
as scope,
.B \-i
as timeout.
.TP 8
.BI \-o " owner"
Specify lock 
.IR owner .
Default is USER environment variable.
.TP 8
.BI \-s " scope"
Specify lock
.IR scope
(`exclusive' or `shared'). Default is `exclusive'.
.TP 8
.BI \-i " timeout"
Specify lock 
.IR timeout
interval. Default is `Infinite'.
.TP 8
.BI \-u
UNLOCK
.IR url .
.BI \-t
option is required.
.TP 8
.BI \-t " token"
Specify the lock
.IR token .
.TP 8
.BI \-r
Set command execution `Depth' as `Infinity'.
.TP 8
.BI \-a " realm"
Specify authentication
.IR realm .
.TP 8
.BI \-A " realm"
Specify proxy authentication
.IR realm .
.TP 8
.BI \-k
MKCOL
.IR url
\.
.TP 8
.BI \-m " dest_url"
MOVE
.IR url
to the
.IR dest_url .
Use lock token if 
.B \-t
is specified. 
.TP 8
.BI \-S
Print output using s\-expression.
.SH ENVIRONMENT VARIABLES
.TP 8
.B http_proxy, HTTP_PROXY
Specify HTTP proxy.
.TP 8
.B USER
When manipulating a lock without an explicit owner option, the value
of USER is used to set the owner of the file lock.
.SH 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.
.SH AUTHORS
Yuuichi Teranishi (teranisi@gohome.org).
.SH SEE ALSO
.IR libxml (4).
.\" end of manual page