FTP Command Validation Statements
When setting up a validation statement for an FTP command, you
can specify a group of alternative parameters by separating the parameters with
spaces. You can also create a binary OR relationship between two parameters by
separating them with a pipe character (|
) in the validation
statement. Surrounding parameters by square brackets ([]
) indicates that those parameters are optional.
Surrounding parameters with curly brackets ({}
) indicates that
those parameters are required.
You can create FTP command parameter validation statements to validate the syntax of a parameter received as part of an FTP communication.
Any of the parameters listed in the following table can be used in FTP command parameter validation statements.
If you use... |
The following validation occurs... |
---|---|
|
The represented parameter must be an integer. |
|
The represented parameter must be an integer between 1 and 255. |
|
The represented parameter must be a single character and a member of the characters specified in the _chars argument. For example, defining the command validity for
|
|
If _datefmt contains
If _datefmt contains
If _datefmt contains literal strings, the represented parameter must match the literal string. |
|
The represented parameter must be a string. |
|
The represented parameter must be a valid host port specifier as defined by RFC 959, the File Transfer Protocol specification by the Network Working Group. |
You can combine the syntax in the table above as needed to create parameter validation statements that correctly validate each FTP command where you need to validate traffic.
Note | When you include a complex expression in a TYPE command,
surround it by spaces. Also, surround each operand within the expression by
spaces. For example, type
|