|
Introduction
The basic idea of these commands is to provide extensions
to the basic ValidateDocumentURL command to provide
support for a number of additional features.
A URL used in browsers is generally composed of several components:
<protocol>://<server>.<top-level-domain>/...rest of URL...?name=value [ name=value]
Here is how this works, based on the full URL:
Example Application
Here is a typical eValid command sequence that illustrates the
process for validation of various URL properties:
...prior eValid script commands... # ----------------------------------------------------------------------------- # (1) Validate the complete document URL...which will # FAIL if there is not a complete match of the entire URL. ValidateDocumentURL 0 "http://customers.e-valid.com" "" # ----------------------------------------------------------------------------- # (2) Validates the protocol of the document... ValidateDocumentProtocol 0 "http" "" # This would be OK for "http://www..." but would FAIL for "https://www..." # ----------------------------------------------------------------------------- # (3) Validates the server...if the actual URL is: # "www.marie-metz.fr:8080" then the command ValidateDocumentServer 0 "www.marie-metz.fr:8080" "" # whereas the command: ValidateDocumentServer 0 "www.marie-metz.fr" "" # Fails # ----------------------------------------------------------------------------- # (4) Validates a fragment of the URL string, always from the start... ValidateDocumentPartialURL 0 "http://customers.e-v" "" # In this example you would be OK with "http://customers.e-valid" but not with # "http://customers.e-view"... # ----------------------------------------------------------------------------- ...subsequent eValid script commands... |