FormDump - Dumps HTML form data

FormDump - Form Decoder and Dumper


This sample is a Microsoft Internet Server extension, similar to CGI extensions common to many internet servers. FormDump illustrates how to write a Dll that can be used to obtain form data from a web browser, and also how to build a reply to the form.

FormDump is structured into two major parts: organizing inbound data into a memory structure, and using that data to build a HTML page. The entry point called by the server is HttpExtensionProc, and from there a set of reusable functions are called to parse inbound form data. A list of keys is created, which allows the sample to process the data. Finally, the HTML page is generated with a set of wrapper functions for HTML.

To build this sample, you must have the Internet SDK installed, and the environment of your compiler properly set. A Visual C++ 4.0 makefile is also included for your convenience. See readme.txt for additonal build issues.

The following files are included in the sample:

Descriptions of files in this sample
Filename Description
FormDump.CppThe main source file and entry point for the Dll.
Keys.Cpp A set of reusable form data decoding functions. Theyimplement an interface that you can use in your own extension.
Html.Cpp A set of wrappers for common HTML features. These wrappers can also be reused.
Keys.h The header file for the external interface implemented in Keys.Cpp.
Html.h The header file for all functions available in Html.Cpp.
FormDump.DefThe module definition file for FormDump.Dll.

Here is an example of how this utility works. The following is a form used by the ISrvMon sample. If you submit this form to FormDump.Dll instead, it shows you the values that the various form parameters were decoded to.

You can use FormDump.Dll with any form. It is useful in understanding how data comes in from the web client.


This is a GET operation

System Information

Memory Status

Process Information


This is a POST operation

System Information

Memory Status

Process Information