WinInet API gets its settings from Internet Explorer, for which the user has to be logged in, making it unsuitable for Windows Services. Use the
WinHTTP API for Windows Services by setting "
useWinHTTP:=TRUE".
WinHTTP API can either be configured with the "UserLogin" property (TRtcHttpClient component),
or directly from Windows by using "netsh" in Windows Console (Google "WinHTTP configuration"):
http://superuser.com/questions/489527/how-can-i-configure-proxy-settings-for-all-apps-system-ie-etc ----
Here is a copy/paste from the link above (in case the page should dissapear later) ...
To configure a system wide proxy do (from a Windows Command Prompt ->
CMD)
netsh winhttp set proxy myproxySource:
http://technet.microsoft.com/pt-br/library/cc731131(v=ws.10).aspx#BKMK_5if you want to use IE proxy settings for all programs, try
netsh winhttp import proxy source=ieSource:
http://technet.microsoft.com/pt-br/library/cc731131(v=ws.10).aspx#BKMK_2For more information, check:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa384069(v=vs.85).aspx
Best Regards,
Danijel Tkalcec