Post Data Logging
Description
There are times when you just want to log any data being passed to a page via a post operation (since using a get
operation exposes the data as part of the querystring) and store it for later review, which oddly enough is exactly
what this script does. It was written after reviewing the webserver logs from one of my machines and finding
something was posting data to a webpage which never existed and due to a lack of any other clues the first
step in locating the cause was to examine what data was attempting to be sent via the post operation.
Single Compressed Download
Individual Components
Installation & Setup
-
Save the source code into a directory somewhere within your webroot, naming it code.asp.
-
Save the sample page into the same directory, naming it demo.htm.
User Guide
Another script which it is easier to demostrate than explain. Browse to
demo.htm, changing any of the
fields present on the form before submitting the form which will leave you looking at a blank page. This happens
because the form sent the data to
code.asp, and since this script was not originally written to use any
outputs there is nothing to see.
However what you should find is a file called
code.asp.log has appeared in the directory, this is a text file
and inside this will be a record of all the data which the form passed along to this script.