Post web forms and data
Post() method is overloaded, i.e. it provides several ways of use.
The simpliest variant of Post() method accepts only the remote URI to post the data to and a text string, array of bytes or data stream with content.
The advanced variant of Post() method lets you specify
When you pass the data stream to one of Post() methods, you need to specify if the stream is closed and the content is freed assigning True to the CloseStream parameter. In other words, you specify, who owns the stream after it is passed and who will need to close / dispose of the stream.
FileField specifies the name of the field in the web form, which denotes a file. Don't include this field to the list of fields of the web form.
There are several ways to obtain the response. First way is to provide the destination stream using OutputStream property of TElHTTPSClient class. The data, received using Get() method will be saved there. Another way is to provide a handler for OnData event.
To track progress of the operation use OnProgress event.
To cancel the operation and close connection use CancelRequest() method.