CHAPTER 10
958
Document Interchange
mand can subsequently be repeated to update the captured content. Table 10.43
shows the contents of this type of dictionary.
TABLE 10.43 Entries in a Web Capture command dictionary
KEY
TYPE
VALUE
URL
L
ASCII string
integer
integer
string or stream
ASCII string
string
dictionary
(Required)
The initial URL from which source data was requested.
(Optional)
The number of levels of pages retrieved from the initial URL. Default
value: 1.
(Optional)
A set of flags specifying various characteristics of the command (see
(Optional)
Data that was posted to the URL.
(Optional)
A content type describing the data posted to the URL. Default value:
application / x−www−form−urlencoded
.
(Optional)
Additional HTTP request headers sent to the URL.
(Optional)
A command settings dictionary containing settings used in the con-
version process (see “Command Settings” on page 960).
F
P
CT
H
S
The
URL
entry specifies the initial URL for the retrieval command. The
L
(levels)
entry specifies the number of levels of pages requested to be retrieved from this
URL. If the
L
entry is omitted, its value is assumed to be 1, denoting retrieval of
the initial URL only.
The value of the command dictionary’s
F
entry is an unsigned 32-bit integer con-
taining flags specifying various characteristics of the command. Bit positions
within the flag word are numbered from 1 (low-order) to 32 (high-order).
and must be set to 0.
TABLE 10.44 Web Capture command flags
BIT POSITION
NAME
MEANING
1
2
SameSite
SamePath
If set, pages were retrieved only from the host specified in the initial URL.
If set, pages were retrieved only from the path specified in the initial URL
(see below).