The Command method sends a command to the server and
processes the result code sent back in response to that command. This
method can be used to send custom commands to a server to take
advantage of features or capabilities that may not be supported
internally by the control.
Not all servers support all of the listed commands, and some
commands may require specific changes to the server configuration. In
particular, the PUT and DELETE commands typically require that
configuration changes be made by the site administrator. All servers
will support the use of the GET command, and all servers that support
at least version 1.0 of the protocol will support the POST
The Parameters argument is used to pass additional
information to the server when a resource is requested. This is most
commonly used to provide information to scripts, similar to how
arguments are used when executing a program from the command line.
Unless the POST command is being executed, the data in the buffer
will automatically be encoded using the current encoding mechanism
specified for the client. By default, the data is URL encoded, which
means that any spaces and non-printable characters are converted to
printable characters before submitted to the server. The type of
encoding that is performed can be changed by setting the
Encoding property. Although the default encoding is
appropriate for most applications, those that submit XML formatted
data may need to change the encoding type.
Only one request may be in progress at one time for each client
session. Use the CloseFile method to terminate the request
after all of the data has been read from the server.