(01-18-2021, 09:43 AM)zarkogajic Wrote: There's also a boolean property "BasicAuthentication" - what is this one used for?
When TIdHTTP receives a response from an HTTP proxy/server asking for authentication credentials, the proxy/server specifies the authentication schemes it supports (BASIC, DIGEST, NTLM, etc). TIdHTTP then checks the currently registered classes in any IdAuthentication... units you have in your uses clause, looking for a class to handle a supported authentication scheme. It then fires the OnSelect(Proxy)Authorization and On(Proxy)Authorization events to let you override any decisions TIdHTTP made, if needed, before a new authentication request is sent back to the proxy/server.
When logging in to an HTTP proxy, the ProxyParams.BasicAuthentication property simply tells TIdHTTP whether or not it is allowed to fallback to the BASIC authentication scheme if another scheme is not used.
When logging in to an HTTP server, the Request.BasicAuthentication property does the same thing.

