Example; Specifying Url Regular Expressions (Url_Regex) - HP P4535A - Web Cache Server Appliance Administrator's Manual

Hp cache server appliance administrator guide
Hide thumbs Also See for P4535A - Web Cache Server Appliance:
Table of Contents

Advertisement

Appendix D
The following table describes each field:
Field
URL
Request_headers
Offset_hour
Interval
Recursion_depth

Example

The following example illustrates an HTTP scheduled update:
http://www.hp.com\User-Agent: noname user agent\13\3600\5\
This example specifies the URL & Request headers, an offset hour of 13 (1 pm), an interval of one hour, and
a recursion depth of 5. This would result in updates at 13:00, 14:00, 15:00, and so on. To schedule for an update
to occur only once a day, use an interval value of 24 hours x 60 minutes x 60 seconds = 86400.
The following example illustrates an FTP scheduled update:
ftp://anonymous@ftp.hp.com/pub/misc/test_file.cc\\18\120\0
This example specifies the FTP request, an offset hour of 18 (6 pm), and an interval of every two minutes.
Note that the user must be anonymous and the password must appear in the
configuration variable

Specifying URL Regular Expressions (url_regex)

This section describes how to specify a url_regex. Entries of type
use regular expressions to perform a match.
The following table offers examples to illustrate how to create a valid
Value
x
.
^
$
[xyz]
[abj-oZ]
[^A-Z]
r*
r+
r?
r{2,5}
r{2,}
r{4}
Allowed inputs
HTTP and FTP-based URLs.
(Optional) A <CR><LF> separated list of headers passed in each
You can define any request header that conforms to the HTTP specification.
The default is no request header.
Base hour used to derive the update periods. The range is 00-23 hours.
The interval, in seconds, at which updates should occur, starting at Offset hour.
The depth to which referenced URLs are recursively updated, starting at the
given URL.
proxy.config.http.ftp.anonymous_passwd
Description
Matches the character 'x'
Match any character
Specifies beginning of line
Specifies end of line
A "character class." In this case, the pattern matches either 'x', 'y', or 'z'.
A "character class" with a range. This pattern matches 'a', 'b', any letter from 'j'
through 'o', or 'Z'.
A "negated character class". For example, this pattern matches any character except
those in the class.
Zero or more r's, where r is any regular expression
One or more r's, where r is any regular expression
Zero or one r's, where r is any regular expression
From two to five r's, where r is any regular expression
Two or more r's, where r is any regular expression
Exactly 4 r's, where r is any regular expression
Configuration Files
records.config
.
within the configuration files
url_regex
:
url_regex
request.
GET
file using the
220

Advertisement

Table of Contents
loading

This manual is also suitable for:

P4535a

Table of Contents