HTTP Connector 12.12

# DateCheck

A bit-wise mask number that specifies where to find the date associated with a page. The date must be in a format specified by the parameter `DateFormats`. Create the number by adding together the following values as required:

URL: 1 | The connector checks whether the URL of a page contains any of the date formats specified in the parameter `DateFormats`.
Page header: 4 | The connector checks whether the HTML <HEAD> tag of a page contains any of the date formats specified in the parameter `DateFormats`.
Page content: 8 | The connector checks whether the content of a page contains any of the date formats specified in the parameter `DateFormats`.
Case insensitive: 64 | Add `64` to the `DateCheck` value to checks for a case-insensitive match. Note that if you specify `64`, you must also specify another value to indicate which part of the page the connector should check for the `date`.
Before download: 128 | Add `128` to the `DateCheck` value to check the URL and determine whether the date for the page is in the range specified by the parameters `BeforeDate` and `AfterDate`. If the date is not in this range, the connector does not download the page.
Discard on check: 256 | If you add `256` to the `DateCheck` value, the connector checks the appropriate page parts for any of the date formats specified in the parameter `DateFormats`, and discards any page that does not contain one of the specified formats. Note that if you specify `256`, you must also define another value to specify which parts of the page the connector should check for the `DateFormats` strings.

If you enter `0`, the connector does not check for `DateFormats`.

If the connector does not find a date, it indexes the page using the date you specify in the parameter `DefaultDate` (or today's date, if `DefaultDate` is not set).

Type: | Long
Default: | 0
Required: | No
Configuration Section: | TaskName or Default
Example: | `DateCheck=393`
See Also: | AfterDate BeforeDate DateFormats DefaultDate

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.12 | Last updated June 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL HTTP Connector 12.12

Topic Title: DateCheck