File: wwwoffle.man

package info (click to toggle)
wwwoffle 2.9f-2.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 7,716 kB
  • ctags: 2,077
  • sloc: ansic: 23,951; sh: 6,815; lex: 4,201; perl: 917; makefile: 623; ruby: 181; lisp: 14
file content (297 lines) | stat: -rw-r--r-- 9,294 bytes parent folder | download
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
.\" $Header: /home/amb/wwwoffle/doc/RCS/wwwoffle.man 2.21 2009/03/13 19:32:02 amb Exp $
.\"
.\"  WWWOFFLE - World Wide Web Offline Explorer - Version 2.9f.
.\"
.\"  Manual page for wwwoffle
.\"
.\"  Written by Andrew M. Bishop
.\"
.\"  This file Copyright 1997-2009 Andrew M. Bishop
.\"  It may be distributed under the GNU Public License, version 2, or
.\"  any higher version.  See section COPYING of the GNU Public license
.\"  for conditions under which this file may be redistributed.
.\"
.TH wwwoffle 1 "March 13, 2009"

.SH NAME

wwwoffle \- A program to control the World Wide Web Offline Explorer.

.SH SYNOPSIS

.B wwwoffle
.B \-h | \-\-help
.B \-\-version
.P
.B wwwoffle
.B \-online
.B [\-p <host>[:<port>] | \-c <config-file>]
.P
.B wwwoffle
.B \-autodial
.B [\-p <host>[:<port>] | \-c <config-file>]
.P
.B wwwoffle
.B \-offline
.B [\-p <host>[:<port>] | \-c <config-file>]
.P
.B wwwoffle
.B \-fetch
.B [\-p <host>[:<port>] | \-c <config-file>]
.P
.B wwwoffle
.B \-config
.B [\-p <host>[:<port>] | \-c <config-file>]
.P
.B wwwoffle
.B \-dump
.B [\-p <host>[:<port>] | \-c <config-file>]
.P
.B wwwoffle
.B \-cyclelog
.B [\-p <host>[:<port>] | \-c <config-file>]
.P
.B wwwoffle
.B \-purge
.B [\-p <host>[:<port>] | \-c <config-file>]
.P
.B wwwoffle
.B \-status
.B [\-p <host>[:<port>] | \-c <config-file>]
.P
.B wwwoffle
.B \-kill
.B [\-p <host>[:<port>] | \-c <config-file>]
.P
.B wwwoffle
.B [\-o|\-O]
.B [\-p <host>[:<port>] | \-c <config-file>]
.I URL
.P
.B wwwoffle
.B [\-d[<depth>] | \-r[<depth>] | \-R[<depth>]]
.B [\-g[Sisfo]]
.B [\-F]
.B [\-p <host>[:<port>] | \-c <config-file>]
.I URL1 [URL2 [... URL]]
.P
.B wwwoffle
.B [\-d[<depth>] | \-r[<depth>] | \-R[<depth>]]
.B [\-g[Sisfo]]
.B [\-F]
.B [\-p <host>[:<port>] | \-c <config-file>]
.I file1 [file2 [... file]]
.P
.B wwwoffle
.B -post
.B [\-p <host>[:<port>] | \-c <config-file>]
.I URL
.P
.B wwwoffle
.B -put
.B [\-p <host>[:<port>] | \-c <config-file>]
.I URL

.SH DESCRIPTION

.I wwwoffle
controls the
.I
World Wide Web Offline Explorer proxy HTTP server.
.LP
The wwwoffle program is used to control the wwwoffled program, to tell it when
the computer is online or offline, and which URLs to get and when to fetch them.
.LP
The control options are also available from the server on an interactive control
web page at http://localhost:8080/control/.

.SH OPTIONS

The command line options available for the program are described below.
.TP
.B \-h | \-\-help
A help message is printed giving a brief description of the usage of the
program.
.TP
.B \-\-version
The version number of the program is printed.
.TP
.B \-online
Tell the wwwoffled proxy server that the computer is online to the internet and
that requests are to be fetched immediately.
.TP
.B \-autodial
Tell the wwwoffled proxy server that the computer can become online to the
internet if required for requests that are not already cached, but that pages
that are in the cache do not require any network access.  This is intended for
use with dial-on-demand systems (using diald for example).
.TP
.B \-offline
Tell the wwwoffled proxy server that the computer is not online to the internet
and that requests are to be cached until they are fetched later.
.TP
.B \-fetch
Tell the wwwoffled proxy server to fetch all of the requests that have been
cached.  (The proxy server must be online for this to work.)  The program will
wait until all of the requests have been met before exiting.
.TP
.B \-config
Tell the wwwoffled proxy server to re-read the configuration file.
.TP
.B \-dump
Tell the wwwoffled proxy server to dump out the current program configuration.
This is equivalent to the most recently read configuration file and the built-in
default options.
.TP
.B \-cyclelog
Tell the wwwoffled proxy server to close and then re-open the log file.
.TP
.B \-purge
Tell the wwwoffled proxy server that the cache is to be purged.  The
configuration file wwwoffle.conf(5) specifies the maximum age of the pages to
keep.  If a maximum cache size is specified then the oldest pages are deleted
until the size is not exceeded.
.TP
.B \-status
Request from the wwwoffled proxy server the current status of the program.  The
online or offline mode, the fetch and purge statuses, the number of current
processes and their PIDs are displayed.
.TP
.B \-kill
Tell the wwwoffled proxy server to exit cleanly at the next convenient point.
.TP
.B URL
The URL of a web page that is to be fetched.  This is the same as using a
browser and entering the URL if not already in the cache or pressing the refresh
button in the index if it is in the cache.
.TP
.B file
The name of an HTML file that is to be parsed and the links in it are to be
fetched as if the URLs had been specified on the command line.
.TP
.B \-o
Fetch the specified URL (from the cache or request it if not already cached when
offline, or get it when online) and output it on standard output.  This is an
easy way of getting an image out of the cache to be used in other programs.  The
contents of the ModifyHTML section of the configuration file are ignored and the
unmodified data is output.
.TP
.B \-O
Fetch the specified URL (from the cache or request it if not already cached when
offline, or get it when online) and output it on standard output including the
HTTP header.  The contents of the ModifyHTML section of the configuration file
are ignored and the unmodified data is output.
.TP
.B \-F
Force the specified URLs to be refreshed.  Without this option, the page will
not be fetched unless newer than the version on the server.
.TP
.B \-r[<depth>]
Causes the pages linked to by the specified URLs also to be fetched if they are
on the same host.  This recursion works for a number of links specified by the
depth parameter, a depth of 0 means only the specified page, a depth of 2 means
all linked pages and all links from them.
.TP
.B \-R[<depth>]
The same as
.B \-r
above, but it also works for links that are not on the same host.
.TP
.B \-d[<depth>]
The same as
.B \-r
above, but is limited to links in the same directory or a sub-directory.
.TP
.B \-gS
Also fetches the stylesheets that are included in the specified URLs.
.TP
.B \-gi
Also fetches the images that are included in the specified URLs.
.TP
.B \-gf
Also fetches the frames that are included in the specified URLs.
.TP
.B \-gs
Also fetches the scripts that are included in the specified URLs.
.TP
.B \-go
Also fetches the objects that are included in the specified URLs.
.TP
.B \-post
Create a request using the POST method, the data is read from stdin, and
appended to the request.  The user must ensure that the format of the data is
valid for a POST request.  Any of the characters '&', '=' or ';' that are not
being used for their reserved purpose must be URL-encoded in the input, other
characters will be URL-encoded.
.TP
.B \-put
Create a request using the PUT method, the data is read from stdin and appended
to the request.
.TP
.B \-c <config-file>
Specifies the name of the configuration file that contains the server host name,
port numbers and authorisation password.  This is required for the -online,
-autodial, -offline, -fetch, -config, -dump, -purge, -status and -kill options
if a password is set.  The user must have read access to the configuration file
to be able to use the command if a password is set.  (See the StartUp and
LocalHost section of wwwoffle.conf(5) for more information on setting the server
host name, ports and password.)
.TP
.B \-p <host>[:<port>]
Sets the hostname and port number that is to be used for the connection to the
proxy server.  For the -online, -autodial, -offline, -fetch, -config, -dump,
-purge, -status and -kill options this must be the WWWOFFLE control port, for
the URL options it must be the WWWOFFLE HTTP proxy server port.  If no -p option
is specified then the compile-time defaults are used.

.P
When the
.I \-F
,
.I \-R[<depth>]
,
.I \-r[<depth>]
,
.I \-d[<depth>]
or
.I \-g[Sisfo]
options are given then they will override the options that are set in the
FetchOptions section of the configuration and not fetch any other contents of
the specified URL.  For example if the fetch options normally include images and
frames then using the
.I \-gi
option will only fetch images and not frames.  All page contents to be fetched
must be specified as command line options.  Specifying
.I \-g
without any options will fetch only the specified URL without any of the
options.

.SH ENVIRONMENT VARIABLE

The
.B WWWOFFLE_PROXY
environment variable can be used instead of the -c or -p options.  There are
three ways that the variable can be used.
.TP
1.
When the variable is set to absolute pathname of a file, then that file is used
as the configuration file like the -c option (for example
/etc/wwwoffle/wwwoffle.conf).
.TP
2.
The WWWOFFLE_PROXY variable can also be set to the hostname and the port number
that would be used with the -p option (for example localhost:8080).
.TP
3.
The third possibility is to set the variable to the hostname and the two port
numbers for the WWWOFFLE HTTP proxy port and the WWWOFFLE control port (for
example localhost:8080:8081).  This way it will work with both types of commands
(proxy access and control).

.SH SEE ALSO

wwwoffled(8), wwwoffle.conf(5), diald(8).

.SH AUTHOR

Andrew M. Bishop 1996-2009 (amb@gedanken.demon.co.uk)