Home > Networking Tips > Network Engineering > HTTP error code troubleshooting, Part 2: How to use IIS tool WFetch
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

NETWORK ENGINEERING

HTTP error code troubleshooting, Part 2: How to use IIS tool WFetch


Brien Posey
11.17.2008
Rating: --- (out of 5)


Network management news, advice and technical information
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


More on HTTP error code troubleshooting
Part 1: What each series of HTTP error status codes means
Part 2: How to use WFetch to troubleshoot HTTP error codes
Part 3: Disabling friendly error messages to find root problems
In HTTP error code troubleshooting, Part 1, I explained that you could get a good idea of what was causing an HTTP error by looking at the error code. Sometimes looking at the error code alone isn't enough, though. In this article, I want to continue the discussion by showing you how to use a tool called WFetch to troubleshoot HTTP errors.

What is WFetch?
In order to understand what WFetch is, you have to understand that when an HTTP error occurs, Internet Explorer does not display everything that it knows about the error, instead displaying what is known in Microsoft circles as a "friendly error message." Even though the friendly error message may not be that helpful in resolving the problem, there is lots of valuable information embedded in the HTTP request and response packets.

WFetch is a part of the Internet Information Services (IIS) 6.0 Resource Kit. It is designed to help you extract valuable troubleshooting information from the HTTP packet headers. You can download the IIS 6.0 Resource Kit at Microsoft's Download Center.

Using WFetch
After you download and install the IIS 6.0 Resource Kit, you can access WFetch by clicking on the Windows Start button and selecting the All Programs | IIS Resources | WFetch | WFetch command. When WFetch starts, you will see a screen similar to the one that is shown in Figure A.

Figure A
This is what the WFetch console looks like.
WFETCH console
Click the image for a larger view.

At a minimum, there are two pieces of information that you must enter into WFetch. First, you must populate the HOST field. This field is set to LOCALHOST by default, but you should replace the default entry with the URL that you are having problems with.

The other thing you have to do is populate the PATH field. This is the specific page that you want to diagnose on the website that you are having problems with. For example, suppose that I were having problems with the following page on my website: http://www.brienposey.com/kb/windows_xp_firewall.asp If that were the case, I would enter www.brienposey.com into the HOST field and /kb/windows_xp_firewall.asp into the path field.

Of course, these are not the only options that you can set. You also have the option of specifying a different HTTP verb, although GET usually works fine.

It is also worth mentioning that WFetch is configured by default to use anonymous authentication. If you are trying to troubleshoot a website that requires authentication, you do have the option of providing a set of authentication credentials. In fact, you can even specify that you want to use Basic, NTLM, Kerberos, Digest, or Negotiate authentication.

Some versions of WFetch allow you to save the password that you are using for authenticating into the specified site. If you have such a version, you need to be aware that if you decide to save the password, it will be stored in clear text in the Windows registry at HKEY_CURRENT_USER\Software\WFetch. That being the case, I do not recommend saving passwords.

One last thing that I want to point out is the Connect option, found in the console's Connection section. By default, WFetch is configured to connect to a site using the HTTP protocol, but you do have some other options as well. You can connect using HTTPS, PCT 1.0, or one of several versions of SSL or TLS.

Once you have entered the various parameters for your test, just click the Go button. When you do, you will see the connection request and the server's response displayed in the Log Output section. You can see an example of this in Figure B. Notice in the figure that the HTTP status code is displayed just above the Log Output window.

Figure B
The results are displayed in the Log Output window.
WFETCH Log Output window
Click the image for a larger view.

Conclusion
In this article, I have shown you how to use the WFetch tool to get a better look at the HTTP connection. In Part 3, I will conclude this series by showing you one last technique for getting more information about an HTTP error message.

Brien M. Posey
Brien M. Posey
About the author:
Brien M. Posey, MCSE, is a Microsoft Most Valuable Professional for his work with Windows 2000 Server and IIS. Brien has served as CIO for a nationwide chain of hospitals and was once in charge of IT security for Fort Knox. As a freelance technical writer, he has written for Microsoft, CNET, ZDNet, TechTarget, MSD2D, Relevant Technologies and other technology companies. You can visit Brien's personal website at www.brienposey.com.


Rate this Tip
To rate tips, you must be a member of SearchNetworking.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Network Engineering
Preventing hacker attacks with network behavior analysis IPS
Internal cloud computing on the cheap: Free automated provisioning?
Improved storage performance without adding more disk
Troubleshooting -- 'Network Know-How' Chapter 17
Windows Server 2008 IP routing configuration: Static and dynamic RIPv2
Understand Windows tracert output to troubleshoot network connectivity
Using tracert and TTL to troubleshoot network connectivity problems
10 Gigabit Ethernet interconnect solutions: Investigate carefully before choosing
Optimization of the data center with 10 Gigabit Ethernet
Converged Enhanced Ethernet: New protocols enhance data center Ethernet

Network Monitoring
Meru reinvents wireless LAN troubleshooting and management
Green enterprise: Three networking investments that make a difference
Network device management overload: Engineers managing too many boxes
What preventative maintenance procedures for network devices exist?
WLAN QoS and SLA monitoring with 7/24 Wireless Quality Assurance costs
How important are network infrastructure maps for engineers or admins?
Understand Windows tracert output to troubleshoot network connectivity
Network management and monitoring market remains crowded, fragmented
When do applications suffer from poor network performance?
Xangati help desk 'DVR' feature speeds up trouble ticketing resolution
Network Monitoring Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
10-high-day busy period  (SearchNetworking.com)
ACK  (SearchNetworking.com)
baseboard management controller  (SearchNetworking.com)
call failure rate  (SearchNetworking.com)
jam  (SearchNetworking.com)
Jini  (SearchNetworking.com)
maximum segment size  (SearchNetworking.com)
maximum transmission unit  (SearchNetworking.com)
netstat  (SearchNetworking.com)
network tracking tool  (SearchNetworking.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Networking Solutions for Business

Alcatel-Lucent Network Business Communications Solutions

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts