This step-by-step article describes how to use the
Winhttptracecfg tool to configure tracing features that are built into WinHTTP
5.0. This article also provides a user interface that you can use if you want
to use Winhttptracecfg from a command line prompt.
Download and Install the User Interface For Winhttptracecfg
- Download and install the MSXML 4.0 parser from the
following Microsoft Developer Network (MSDN) Web site:
- Download Winhttptracecfg.exe from the Microsoft Download
Center:
The following file is available for download from the Microsoft Download Center:
Collapse this imageExpand this image
Download the Winhttptracecfgui.exe package now.
(http://download.microsoft.com/download/2/8/9/289387e3-55fe-45b3-b532-87c6d21e54ec/winhttptracecfqui.exe)
Release Date: June 11,
2003
For additional information about how to download Microsoft
Support files, click the following article number to view the article in the
Microsoft Knowledge Base: 119591
(http://support.microsoft.com/kb/119591/EN-US/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
The Winhttptracecfgui.exe file contains the
following items: - Winhttptrace.ocx
- Serverxmlhttptrace.htm
When you are prompted, click Save As and select the folder in which you want to save the file. Make
sure that you save the tool in the same folder in which you want to save the
user interface. - Decompress the files and save them in the same folder in
which you saved Winhttptracecfgui.exe. Note that the user interface does not
work if the .ocx file is not saved in the same folder as
Winhttptracecfgui.exe.
- To register the .ocx file, click Run on the Start menu and type regsvr32 <pathofocx>/winhttptrace.ocx, where <pathofocx> is the path to the folder that contains
Winhttptrace.ocx.
NOTE: If the path to the file contains spaces, the path that includes
the .ocx file must be enclosed in quotation marks (").
Run the Trace and Obtain Information
- Load Serverxmlhttptrace.htm into a browser.
- Configure the trace as desired. For more information on
configuration options, see the "Configuration Options" section.
- Click START Tracing.
- Restart IIS.
- To stop the trace, click STOP Tracing.
When the trace is made, it is saved in the folder that you have
specified, with the prefix that you have specified.
The following can
be found in the log, depending on how the trace is configured:
- The time stamp that is located on the left of the log helps
to determine elements such as time to resolve, time to send, time to receive,
and so on.
- The resolved server name indicates that WinHTTP was able to
find that server. Note that this does not mean that the page is available. This
is a basic Domain Name System (DNS) resolution and simple ping.
- Sections that start with "Sending Data" indicate that the
WinHTTP tool is sending information to the specified URL. These sections
contain the amount of bytes that are sent, header information, and body
information. The way in which the data is logged depends on whether you are
tracing with HEX or ASCII.
- Sections that start with "Receiving Data" indicate that the
WinHTTP tool is receiving data from the specified URL. These sections contain
the amount of bytes that are sent, header information, and body information.
The way in which the data is logged depends on whether you are tracing with HEX
or ASCII.
- If API tracing is selected, you see additional information for each section,
such as the resolving of the URL and the reading of the return stream when the
request is finished.
Configuration Options
Troubleshooting
- If the trace does not take the new settings that you have
selected, make sure that you restart IIS after you change
configurations.
- If the .ocx file does not appear in the browser window,
make sure that you have registered the control.
- If the browser window is empty even after you have
registered the trace, make sure that the following files are installed on your
computer:
Collapse this tableExpand this table
| File | Location |
|---|
| Msvbvm60.dll | C:\WINNT\System32 or
C:\Windows\System |
| Comdlg32.ocx | C:\WINNT\System32 or
C:\Windows\System |
For additional
information, click the article number below to view the article in the
Microsoft Knowledge Base:
278674
(http://support.microsoft.com/kb/278674/EN-US/
)
Determine the Version of MSXML Parser Installed on a Computer
This article contains links to the following
Download Center files:
Xmlversion.exe
(http://download.microsoft.com/download/b/b/e/bbe50ceb-1783-4e53-a489-e17dc5aaefb3/xmlversion.exe)
Xmlversiontext.exe
(http://download.microsoft.com/download/d/4/4/d4438178-548f-4251-bc9c-0a3bde63681c/xmlversiontext.exe)
Versions.exe
(http://download.microsoft.com/download/c/9/e/c9e4829a-1da7-482a-8292-d47da81eef4e/versions.exe)
For
additional information about how to download Microsoft Support files, click the
following article number to view the article in the Microsoft Knowledge Base:
119591
(http://support.microsoft.com/kb/119591/EN-US/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
Article ID: 307272 - Last Review: January 12, 2005 - Revision: 7.3
APPLIES TO
- Microsoft XML Core Services 4.0
| kbdownload kbhowtomaster KB307272 |