HTTPClient and OAuthClient enhancements
The HTTPClient object can now send authentication credentials to
the server/proxy when accessing the server resources. The following
are the newly-added functions:
-
SetCredentials. It passes
the required authorization credentials to the server. -
GetSupportScheme. It gets
the supported authentication schemes. -
ResendPostRequest. It
resends the request when necessary.
The HTTPClient and OAuthClient objects no longer need to call
the ExtractorObject object to extract data. The following functions
have been enhanced to automatically decompress the response data in
the gzip or brotli format (with the response header “Content-Encoding:
gzip” or “Content-Encoding: br”):
-
SendRequest and ReadData in
HTTPClient -
RequestResource in
OAuthClient