Is there a way to tell IIS to not do any header generation itself? My
alternative would be to parse the byte stream, translate the headers
to HSE_REQ_SEND_RESPONSE_HEADER, remove the headers from the forwarded
bytes, all of which would be unnecessary if I could just disable
automatic header generation.
This is using raw ISAPI, not the MFC wrapper.
Thanks in advance,
/Ashok
There is no IIS feature/behavior called "automatic header generation"
to enable/disable. The issue is either with your configuration of IIS
or your own ISAPI implementation.
ISAPI WriteClient writes raw data and will not add anything.
HSE_REQ_SEND_RESPONSE_HEADER will write automatic headers.
If your ISAPI Extension receives a byte stream and then only use
WriteClient to send the response, there will be no automatic response
header. I do this on all IIS versions (5.0, 5.1, 6.0, 7.0) all the
time and never see anything other than what is WriteClient(), as
expected.
If you see any automatic response header, it is likely due to another
ISAPI on the system, either an ISAPI Filter at the global or site
level, or less likely an Wildcard Application Mapping on IIS 5.x.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
You were exactly right. Thanks.
/Ashok