WinHTTP SDP package information

Summary

The Support Diagnostic Package (SDP) for WinHTTP is used to configure WinHTTP tracing on the machine that is experiencing an issue with the WinHTTP technology. The SDP package will collect a WinHTTP trace of an application using the WinHTTP API.

While the SDP package will usually take care of enabling the WinHTTP tracing and disabling the tracing, the trace will need to be manually stopped/ disabled if the user decides to cancel the SDP package before the SDP package gets a chance to perform the necessary cleanup. This KB article outlines the steps required to disable WinHTTP tracing depending on the operating system the tracing package was run on.



More Information

To disable WinHTTP tracing manually, please follow the steps below based on the operating system you were collecting the trace.

A.) Windows XP and Windows 2003.

1. Open the registry editor (regedit.exe) and navigate to the registry location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp\Tracing.

2. Make a backup of the following registry location. To do that, right click the "Tracing" key, choose "Export" and save the registry setting to a file. You can use that "reg" file to add the tracing again if necessary.

3. Once the tracing key has been backed up, you can delete/rename the "Tracing" key.

4. Please restart your application that was experiencing the WinHTTP issue to ensure that the tracing stops. If your application has already stopped, you can delete the trace from the location where it was being collected. This trace location is specified when you use the SDP package. By default the SDP package creates the WinHTTP trace in the C:\WinHttpTraces folder.

5. If you have a 64 bit operating system, you also need to ensure that you delete any tracing that was created for the 32 bit registry location. To disable tracing for 32 bit applications, open the registry editor (regedit.exe) and navigate to the registry location: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp\Tracing and then follow step (2), (3) and (4) above.

B.) Windows Vista and Windows 2008.

1. Open an elevated command prompt ("Run as administrator") and then type the command: netsh winhttp reset tracing

2. For 64 bit operating systems you need to disable tracing for 32 bit applications. To do that, open cmd.exe from an elevated command prompt ("Run as administrator") from %windir%\SysWOW64\cmd.exe and then type the command: netsh winhttp reset tracing

3. Restart your application that was experiencing the issue to ensure that the tracing stops for your application. You can delete the trace from the location where it was being collected. This trace location is specified when you use the SDP package. By default the SDP package creates the WinHTTP trace in the C:\WinHttpTraces folder.


C.) Windows 7 and Windows 2008 R2.

1. Open an elevated command prompt ("Run as administrator") and then type the command: netsh winhttp reset tracing

2. From the same command prompt type: netsh trace stop. This will stop the ETL trace collection.

3. For 64 bit operating systems you need to disable tracing for 32 bit applications. To do that, open cmd.exe from an elevated command prompt ("Run as administrator") from %windir%\SysWOW64\cmd.exe and then type the command: netsh winhttp reset tracing.

4. You do not need to type: netsh trace stop from the 32 bit command prompt.

5. Restart your application that was experiencing the issue to ensure that the tracing stops for your application. You can delete the trace from the location where it was being collected. This trace location is specified when you use the SDP package. By default the SDP package creates the WinHTTP trace in the C:\WinHttpTraces folder.


Reference

KB 2598970 - Information about the Microsoft Automated Troubleshooting Services and Support Diagnostic Platform
http://support.microsoft.com/kb/2598970

KB 973559 - Frequently asked questions about the Microsoft Support Diagnostic Tool (MSDT) for Windows 7
http://support.microsoft.com/kb/973559

WinHttpTraceCfg.exe, a Trace Configuration Tool
http://msdn.microsoft.com/en-us/library/windows/desktop/aa384119.aspx

Netsh Commands for Windows Hypertext Transfer Protocol (WINHTTP)
http://technet.microsoft.com/en-us/library/cc731131.aspx

Netsh Commands for Network Trace in Windows Server 2008 R2 and Windows 7
http://technet.microsoft.com/en-us/library/dd878517.aspx


Properties

Article ID: 2725072 - Last Review: 26 Jun 2012 - Revision: 1

Feedback