The OnCommand event handler is invoked after the client has
sent a command to the server, but before the command has been
processed. To implement
an event handler, the application should create a class derived from
the CHttpServer class, and then override this method.
This event handler is invoked for all commands issued by the
client, including invalid or disabled commands. If the bHandled
parameter is FALSE, the server will perform the default processing for
the command. If the bHandled parameter is set to TRUE, the
server will take no action. Note that if the event handler processes
the command, it must call the SendResponse method to send a
success or error response back to the client. If this is not done, the
server will consider the command to be invalid and will send a 501
"not implemented" error by default.
It is not necessary to use this event handler to disable a command.
The EnableCommand method can be used to enable or disable
specific commands, and the IsCommandEnabled method can be used to
determine if a command is enabled.