Microsoft Knowledge Base Email Alertz

KBAlertz.com: (307272) - 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...

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 307272 - Last Review: January 12, 2005 - Revision: 7.1

How To Trace ServerXMLHTTP Calls Using the Winhttptracecfg Tracing Tool in XML

This article was previously published under Q307272

On This Page

SUMMARY

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

  1. Download and install the MSXML 4.0 parser from the following Microsoft Developer Network (MSDN) Web site:
    http://msdn.microsoft.com/xml (http://msdn.microsoft.com/xml)
  2. 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
    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://kbalertz.com/Feedback.aspx?kbNumber=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.
  3. 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.
  4. 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

  1. Load Serverxmlhttptrace.htm into a browser.
  2. Configure the trace as desired. For more information on configuration options, see the "Configuration Options" section.
  3. Click START Tracing.
  4. Restart IIS.
  5. 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

  • Output to Log File: This option allows you to output the trace to a log file. You can specify the folder and the prefix of the file. If no folder is specified, the log file is written to the folder that contains the Winhttp5.dll file (usually the System or System32 folder). If the folder is specified, the log file is written to that folder. If you decide to add a prefix, the file is created in the default folder or the specified folder, and has the following format:
    <prefix>-<application name>.<time>.log
  • Output to Debugger: This option specifies whether the trace output is displayed in a debugger.
  • Enable API Tracing: This option specifies whether top-level function calls are recorded in the trace.
  • Show information in selected format: This option specifies how network traffic (such as requests and responses) is displayed.
  • Maximum Log File Size: This option specifies the maximum size, in bytes, of a log file that is generated by the tracing facility. If specified, the minimum value is 65535 bytes. If a log file reaches the maximum size, the contents of the file are erased. Trace information continues to be written to the log file.

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
    FileLocation
    Msvbvm60.dllC:\WINNT\System32 or C:\Windows\System
    Comdlg32.ocxC:\WINNT\System32 or C:\Windows\System


    These files are required for the ActiveX control to work. To obtain these files, see the following Microsoft Web site:
    DLL Help Database
    http://support.microsoft.com/dllhelp (http://support.microsoft.com/dllhelp)

REFERENCES

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
278674  (http://kbalertz.com/Feedback.aspx?kbNumber=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://kbalertz.com/Feedback.aspx?kbNumber=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.

APPLIES TO
  • Microsoft XML Core Services 4.0
Keywords: 
kbdownload kbhowtomaster KB307272
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please