Reputation: 1
I'm building sort of a http sniffer for IIS6, for that I'm using both ISAPI filter and ISAPI extension. Extension - to read the request. Filter - to read the response.
The reason i'm using extension is that I don't want to force the user to change to IIS5 Compatibility Mode and therefore can't subscribe to SF_NOTIFY_READ_RAW_DATA.
The thing is, when I read the response, I want to link it to the request, so I need to give a unique identifier to the request, and use it when reading the response.
I have read that there used to be an option to call ServerSupportFunction with SF_REQ_GET_CONNID, but that's not supported in IIS6.
Also I have read that a possible solution is to append customer header and then remove it - that would probably work, but seems less elegant than I hoped to implement.
Is there any way to get the connection ID (connID in EXTENSION_CONTROL_BLOCK) in the filter?
appreciate your response, Sagiv
Upvotes: 0
Views: 409
Reputation: 11
I had the same problem a few months ago.
I did the following to solve the problem:
This way I have both the request content (from the Extension) and the response content (from the filter) linked!
Upvotes: 1