You are not logged in.
Pages: 1
Hello!
I can't use OnProgress and OnDownload for TWinHttpAPI, but not work.
fClient := TSQLHttpClientWinHTTP.Create('localhost','888',fModel);
TWinHttpAPI(fClient).OnProgress := DoProgress;
TWinHttpAPI(fClient).OnDownload := DoDownload;
TWinHttpAPI(fClient).OnDownloadChunkSize := 2;
Events not triggered. In TWinHttpAPI.InternalRetrieveAnswer: fOnDownload, fOnProgress is nil and fOnDownloadChunkSize = 0.
What's wrong my code?
Thx, Csaba
Offline
Fund the solution (maybe not optimal)
fClient := TSQLHttpClientWinHTTP.Create('localhost','888',fModel);
TWinHttp(fClient.Request)).OnProgress := DoProgress;
TWinHttp(fClient.Request)).OnDownload := DoDownload;
TWinHttp(fClient.Request)).OnDownloadChunkSize := 2;
Offline
Pages: 1