I have an ASP.NET website and am having trouble capturing some specific requests that are giving me trouble. The website calls an asmx web service that it also hosts (therefore makes a webservice call to (http://localhost/whatever.asmx)). I'm getting a 400: Bad Request back, so I want to figure out exactly what request is being made.
I can't use something like wireshark, because it's a call to localhost. What I'm trying now is implementing and registering a HttpModule to log requests. I don't think my HttpModule is getting called for these requests, but when I try on another machine where the request goes through, it gets hit every time.
Does IIS return with 400: Bad Request before my HttpModule gets hit? Is there something else I can hook into to be able to log the request?
Edit:
I'm starting to think I need some kind of ISAPI filter or extension. Not knowing anything about this, some help going this direction would be appreciated if this is the appropriate course of action.