How to read IE settings with WinInet?
Posted on 2009-12-18
I want to download a large file from a server but that file is created on the fly (when the request arrives) and so it could happen that there are pauses while downloading. The file consists of several parts and they take sometime to assemble. When the download of the first part is faster than assembling the second part there will be a delay.
Downloading with WinInet calls leads to problems because when the delay is too long InternetReadfile() times out. I don't know how to increase this timeout period of the InternetReadFile call.
I submitted already another question about that problem but that is still open. It does work fine when I download the file with Indy and set ReadTimeout accordingly. Since I need to use the Internet Explorer settings (therefore I tried downloading it with WinInet) my workaround is to read the IE settings with WinInet and then configure the Indy class accordingly.
Does anyone know which settings I need to use, how to read them with WinInet and which properties need to be configured in TIdHttp?