Internet Direct (Indy) Version 9.0.2 Beta
|
property OnCommandXHDR: TBasicEvent;
XHDR is a Common NNTP Extension as described in RFC 2980, and is used to retrieve specific headers from specific articles. XHDR requires a valid header name, as described in RFC 1036, and an optional range or message-id.
The optional range argument can consist of a single article number, a starting article number, or a starting and ending article number. For example:
The optional message-id argument indicates a specific article. The range and message-id arguments are mutually exclusive. If no argument is specified, then information from the current article is displayed.
Successful responses include the matched headers from all matched messages. Each line containing matched headers returned by the server has an article number (or message ID, if a message ID was specified in the command), then one or more spaces, and the value of the requested header. Responses are terminated with a line containing a single period "." character.
Some implementations will return "(none)" followed by a period on a line by itself if no headers match in any of the articles searched.
Applications should assign a procedure to the event handler in order to respond to the NNTP command, or the server will return the default message:
500 command not recognized