I am trying to replace TWebBrowser with TChromium. In order to download a file, with the tWebBrowser, I navigate using:
Headers := 'Authorization: Basic ' + IdeMIME.EncodeString(FUser + ':' + FPass);
webBrowser.Navigate(URL, EmptyParam, EmptyParam, PostData, Headers);
The browser logs in, behind the scene, and prompts the user to either open or save the download file (this is what I want). With TChromium, I use:
Chromium1.Load(URL);
and in the OnGetAuthCredentials event:
callback.Cont(FUser,FPass);
result := true;
The OnGetAuthCredentials event is not triggered, and the result is a login screen. Am I using the TChromium correctly? How do I download a file, as I do with the TWebBrowser?