Discuss this help topic in SecureBlackbox Forum
Retrieve the data
To retrieve the data from the HTTP server, use Get() method of TElHTTPSClient class.
Pass the URI of the resource that you want to retrieve, as a parameter to Get() method.
If you want to retrieve only part of the resource, you need to use RequestParameters property of TElHTTPSClient class, which references an instance of TElHTTPRequestParams class. TElHTTPRequestParams class includes ContentRangeStart and ContentRangeEnd properties where you can specify the beginning and the end of the needed data block. Using the same class you can restrict the types of the data that the server can provide. This is done by adjusting the values of Accept, AcceptCharset, AcceptLanguage properties of TElHTTPRequestParams class.
There are several ways to obtain the resulting data. 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.