Martin Heller
Contributing Writer

Thank you, Eric Lawrence

analysis
Nov 8, 20082 mins

The free Fiddler HTTP debugging proxy saved Martin's hide, yet again.

I mentioned Fiddler quite a while ago — in April 2007. At the time, I talked about how it works as an HTTP debugging proxy and how you can use it to speed up your Web sites.

Last week, Fiddler saved my worthless hide. I was trying to debug a problem with an AJAX application that was sending HTML forms to a Web server for saving in a database. (Don’t ask me why it wasn’t using JSON. An old code base is a terrible burden.)

One of the forms didn’t seem to be updating in the database. Debugging the JavaScript code on the client showed me that it was being sent just fine.

I wrote the server code that was processing the form about eight years ago, before AJAX had been invented. At the time, I had put all sorts of debugging output into the page that would fire and send an e-mail to a list if there was a problem. None of that was being triggered. I was tearing my hair. I invoked the “20-minute rule” after a couple of hours of this nonsense, and asked for help.

A colleague suggested looking at the data stream with Wireshark or Fiddler. D’oh!

Fiddler is a little easier to use than Wireshark for this kind of problem, so I updated my copy of Fiddler, fired it up, and ran the AJAX application. When I looked at the response from the server page, sure enough there was the debugging output and the Error 500 response header, which the AJAX code was blithely ignoring.

I fixed the server code problem and reran the application. I looked at the AJAX request and the response from the corrected server page with Fiddler. This time, I could look at the form object, formatted cleanly, and see what was getting sent across to be processed. The HTTP response was a simple OK. The database was showing the correct information, and all was well.

Eric Lawrence of Microsoft is the author and maintainer of Fiddler, which is free software, not a Microsoft product.

Thank you, Eric!

Martin Heller

Martin Heller is a contributing writer at InfoWorld. Formerly a web and Windows programming consultant, he developed databases, software, and websites from his office in Andover, Massachusetts, from 1986 to 2010. From 2010 to August of 2012, Martin was vice president of technology and education at Alpha Software. From March 2013 to January 2014, he was chairman of Tubifi, maker of a cloud-based video editor, having previously served as CEO.

Martin is the author or co-author of nearly a dozen PC software packages and half a dozen Web applications. He is also the author of several books on Windows programming. As a consultant, Martin has worked with companies of all sizes to design, develop, improve, and/or debug Windows, web, and database applications, and has performed strategic business consulting for high-tech corporations ranging from tiny to Fortune 100 and from local to multinational.

Martin’s specialties include programming languages C++, Python, C#, JavaScript, and SQL, and databases PostgreSQL, MySQL, Microsoft SQL Server, Oracle Database, Google Cloud Spanner, CockroachDB, MongoDB, Cassandra, and Couchbase. He writes about software development, data management, analytics, AI, and machine learning, contributing technology analyses, explainers, how-to articles, and hands-on reviews of software development tools, data platforms, AI models, machine learning libraries, and much more.

More from this author