Richard Lloyd
asked on
Record POST form entry in iis logs
I am trying to find a way to capture information from a form POST in the corresponding IIS logs for some debugging purposes.
I have a form that captures data and is then added to a database. From time to time the data is not added and there is no entry in my internal logs, but I can see the page request being made in the IIS log.
If the FORM used GET, then I would be able to see the data being sent, but as the form is secure and needs POST, I all can see in the IIS logs is the PHP file name.
Is there a way to capture a form field and include it in the form action as a querystring. May be using ajax to populate the querystring?
So my form would look something like, where xxxxxx is the data being entered, which then also shows in the querystring:
I have a form that captures data and is then added to a database. From time to time the data is not added and there is no entry in my internal logs, but I can see the page request being made in the IIS log.
If the FORM used GET, then I would be able to see the data being sent, but as the form is secure and needs POST, I all can see in the IIS logs is the PHP file name.
Is there a way to capture a form field and include it in the form action as a querystring. May be using ajax to populate the querystring?
So my form would look something like, where xxxxxx is the data being entered, which then also shows in the querystring:
<form method="post" action="action.php?data=xxxxxx">
<input name="data" type="text" value="xxxxxx">
<input value="SUBMIT" type="submit">
</form>
https://docs.microsoft.com/en-us/archive/msdn-magazine/2002/august/asp-net-intercept-monitor-and-modify-web-requests-with-http-filters-in-isapi-and-asp-net
ASKER
Thanks - but I am not using asp.net, which bit refers to what I am looking for?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Brilliant!
Perfect.
Perfect.