WinHttp Configuration for Windows Vista Beta 2 - Part 1

WinHttp for Windows XP and Windows Server 2003 comes with variety of tools that allow the users and system administrators to configure the default proxy settings (ProxyCfg.exe), tracing settings (WinHttpTraceCfg.exe) and configure client certificates (WinHttpCertCfg.exe).

ProxyCfg.exe has been part of the operating system, while WinHttpTraceCfg.exe and WinHttpCertCfg.Exe have to be downloaded separately as part of the Windows Server 2003 Resource Kit Tools.

To avoid the need of tools that don’t ship with Windows and to make the user experience more consistent with the other networking components, ProxyCfg.exe and WinHttpTraceCfg.exe are deprecated for Windows Vista and replaced with Net Shell (Netsh) extensions. WinHttpCertCfg.Exe is deprecated as well and its functionality is integrated in the new Certificates MMC snap-in.

If you are not familiar with Netsh, you can take a look at Windows XP online help (here is a good link). In this post series we will go over some samples on how to configure the WinHttp proxy, tracing settings and client certification settings. Please note that the samples describe the current behavior in Windows Vista Beta 2 and that the command syntax is likely to change a bit for Vista RTM.

To start, you can load up netsh on a Vista CTP build and check it out. The new context that WinHttp introduces is “WinHttp”. You can get to it by just typing “winhttp” from the root netsh context:

C:\> netsh

netsh> winhttp

netsh winhttp>

From here there are two nested contexts available:

proxy    - Configures proxy settings in WinHTTPtracing  - Configures tracing in WinHTTP

Note that at any point you can type “?” to get the list of supported commands. Also, typing “command ?” will show all the parameters for that command.

Next time I will go into a bit more detail about the proxy configuration.

   -- Nesho Neshev

Comments

  • Anonymous
    May 07, 2006
    WinHTTP - ユーティリティの紹介と Windows Vista での改善

  • Anonymous
    May 09, 2006
    In Part 1 of this series I discussed the tools used to configure WinHttp today and introduced the changes...

  • Anonymous
    May 09, 2006
    In Part 1 and Part 2 of this series I discussed the tools used to configure WinHttp today, introduced...

  • Anonymous
    May 12, 2006
    In Part 1, Part 2 and Part 3 of this series I discussed the tools used to configure WinHttp today, introduced...

  • Anonymous
    June 19, 2007
    WinHTTP - ユーティリティの紹介と Windows Vista での改善

  • Anonymous
    May 24, 2008
    Yet another reason why we say Vista is a downgrade... one less tool and more waste of time for me to diff through netsh. Thanks you Microsoft.

  • Anonymous
    November 21, 2008
    I agree , this stuff should be lot easier.