This step-by-step article describes how to use the WFetch utility (Wfetch.exe) to troubleshoot HTTP connections.
Availability
Microsoft Windows XP Professional/Microsoft Windows Server 2003WFetch 1.3 is included in the Internet Information Server (IIS) 6.0 Resource Kit Tools. To download the IIS 6.0 Resource Kit Tools, visit the following Microsoft Web site:
Microsoft Windows 2000/Microsoft Windows NT 4.0WFetch 1.2 is available for use with earlier versions of Windows. To download WFetch 1.2, visit the following the following Microsoft Web site:
WFetch Features
When you are troubleshooting connectivity issues between Internet Information Server (IIS) or Internet Information Services (IIS) and Web clients, you may want to view data that is not displayed in the Web browser, such as the HTTP headers that are included in the Request and Response packets.
WFetch is a free utility that is provided on an "as-is" basis. Microsoft does not support the utility, but you can use it to provide detailed information about the traffic between the client and server.
Warning This utility provides advanced features that can permit a user to expose a server to potential security risks. For this reason, Microsoft recommends that the utility be used only in testing, and not in a production environment. See the "Security Ramifications" section of this article for more information.
The following features are available in the current version of WFetch:
- Multiple HTTP verbs (GET, HEAD, PUT, DELETE, TRACE, POST, OPTIONS)
- Configurable host name
- Configurable TCP port
- HTTP 1.0 and HTTP 1.1 support
- Multiple authentication types (Anonymous, Basic, NTLM, Kerberos, Digest, Negotiate)
- Client-certificate support
- Multiple connection types (HTTP, HTTPS, PCT 1.0, SSL 2.0, SSL 3.0, TLS 3.1)
- Proxy support
- Advanced requests that are entered manually or read from a file
- On-screen and file-based logging
WFetch does not log the TCP handshake data that is used to establish and close TCP sessions. For additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
172983Â
(http://kbalertz.com/Feedback.aspx?kbNumber=172983/EN-US/
)
Explanation of the Three-Way Handshake via TCP/IP
To troubleshoot connectivity issues (including TCP session data), use a utility such as Network Monitor, which captures network packets.
Usage
After you extract the utility to a client with TCP/IP access to a Web server, start the Wfetch.exe application and follow these steps:
- In the Host box, type the name of a Web site (for example, www.microsoft.com).
- In the Path box, select the path of the file, folder, or application on the Web site that you used in step 1 (for example, /default.asp).
- Add any additional options based on the test that is being performed.
- Click Go.
Security Ramifications
For additional information about the TCP/IP three-way handshake, click the following article number to view the article in the Microsoft Knowledge Base:
172983Â
(http://kbalertz.com/Feedback.aspx?kbNumber=172983/
)
Explanation of the Three-Way Handshake via TCP/IP
For additional information about troubleshooting with Network Monitor, click the following article numbers to view the articles in the Microsoft Knowledge Base:
148942Â
(http://kbalertz.com/Feedback.aspx?kbNumber=148942/
)
How to Capture Network Traffic with Network Monitor
252876Â
(http://kbalertz.com/Feedback.aspx?kbNumber=252876/
)
How to View HTTP Data Frames Using Network Monitor
For additional information about Digital Certificates, Cryptography, and SSL, click the following article number to view the article in the Microsoft Knowledge Base:
195724Â
(http://kbalertz.com/Feedback.aspx?kbNumber=195724/
)
Description of Digital Certificates