Discuss this help topic in SecureBlackbox Forum
Setup the connection parameters
To use HTTP client, you need to create an instance of TElHTTPSClient component.
Most request parameters are specified using RequestParameters property, which references an instance of TElHTTPRequestParams class. This class lets you specify various HTTP request parameters, such as Referer, UserAgent, Accept, AcceptCharset, AcceptLanguage. For various operations (get, post etc.) additional properties are used.
TElHTTPSClient sets predefined values for most request parameters, so you don't necessarily need to set/change them.
If you want to send several requests without re-opening connection each time, you can use keep-alive mode. This is done by setting PreferKeepAlive property of TElHTTPSClient class to true. To close connection after sending several requests use CancelRequest() method of TElHTTPSClient class.
To properly handle redirections, you need to limit the number of redirections using MaxRedirections property of TElHTTPSClient class and optionally provide a handler for OnRedirection event. This event notifies your application about the redirection and lets you decide whether the request should be redirected.
To adjust authentication settings, see the corresponding how-to article.
If you want to connect using HTTP proxy, see the corresponding how-to article.
If you want to set the cookie for the request, see the corresponding how-to article.