These are chat archives for IndySockets/Indy
BasicAuthenticationto false. You are setting it to true, which gives TIdHTTP permission to send
Basicauthentication requests. That is not what the proxy is asking for.
BasicAuthenticationshould be false? Or is it more like try and error? First try with Basic, if it is not successful do a second try without Basic?
BasicAuthenticationhas to be set before you send a request, since it helps govern the type of authentication sent in the request. The only way to determine the server's desired authentication type(s) is to send a request, even if just
HEAD, and see how the server responds. The authentication(s) are specified in the response's
Proxy-Authenticateheaders. If you plan on having TIdHTTP handle authentication,
hoInProcessAuthshould always be set. At the very least, it needs to be set before the response is parsed, so you could set it dynamically in the
OnHeadersAvailableevent, for instance. If
hoInProcessAuthis not set, you have to handle authentication manually by checking the
TIdHTTP.ResponseCodeand then setting the
TIdHTTP.Request.CustomHeaders.Values['Authorization']on the next request.