The Put method is used to create documents on an HTTP server.
Parameters:
The URL parameter specifies the document to create on the remote HTTP server.
If the OutputFileMode property is TRUE, the PutData parameter specifies a file to read the data out of to create the document on the remote host.
If the OutputFileMode property is FALSE, the PutData parameter contains the data that will be put into the newly created document on the remote host.
Notes:
For this method to work correctly, you must have rights to write on the host you are creating the document on.
If this method executes successfully, the OnSuccess event is called, passing CmdPUT as the Cmd parameter.
If this method fails to execute successfully, the OnFailure event is called, passing CmdPUT as the Cmd parameter.
TNMHTTP component
Declaration
procedure Get(URL: string); virtual;
Description
The Get method retrieves the document specified by the URL parameter.
If InputFileMode is TRUE, the document retrieved by the Get method is stored in the file that is specified by the Body property, and the header is stored in the file that is specified by the Header property.
If InputFileMode is FALSE, the document retrieved by the Get method is stored in the Body property as a string. The header is stored in the Header property as a string.
Parameters:
The URL parameter specifies the document to retrieve.
Note:
If the operation is successful, the OnSuccess event is called, passing CmdGET as the Cmd parameter.
If the operation fails, the OnFailure event is called, passing CmdGET as the Cmd parameter.