9

What is the difference between the proxy settings that we set in IE vs. the settings that we could do using netsh winhttp

Who uses which settings? In particular, which one does IIS use by default.

cellik
  • 193
  • 1
  • 1
  • 3

1 Answers1

2

You can configure proxy settings for IIS in the web.config. http://msdn.microsoft.com/en-us/library/kd3cf2ex.aspx

Since the proxy configuration in web.config references System.Net, I assume that IIS uses winhttp when retrieving proxy settings.

One thing to note is that winttp can retrieve settings from IE or try to autodetect proxy settings via. web proxy auto detect (WPAD). When faced with winhttp proxy issues you can use the following command to set winhttp to the IE proxy settings. netsh winhttp>import proxy source=ie

My experience is that windows uses winhttp for certain services, for example when downloading windows updates and performing certification revocations checks.

Fannar Levy
  • 161
  • 5
  • 1
    Good reference: https://securelink.be/blog/windows-proxy-settings-explained/ Two main internet settings on windows: 1) WinInet (used by IE settings) 2) WinHTTP (usually used by non-interactive apps like windows updates) – hB0 Jun 22 '18 at 07:04
  • The original site has been moved/migrated and the old article lost; the IA has a cached copy: https://web.archive.org/web/20181014153433/https://securelink.be/blog/windows-proxy-settings-explained/ – Chris Woods Mar 31 '23 at 20:32