IIS 7 and Above
IIS filter isapi ver. 7.0 how to retrieve content-length?
Last post Aug 09, 2017 04:08 PM by BOBdp1974
Aug 09, 2017 04:08 PM|BOBdp1974|LINK
I have just updated a ISAPI filter from version 4 (windows 2003) of httpfilt.h to 7 (windows 2008 and following).
Now I'm developing with IIS 10.
I have a problem,
with the previous IIS version, on SF_NOTIFY_SEND_RESPONSE calling http_filter_send_response->GetHeader was returning correctly the "Content-Length:" and the "X-Powered-By:" headers;
now I receive empty returns over the same headers, also calling GetServerVariable('ALL_RAW') is empty returns.
Some other headers as HTTP_ACCEPT work.
I have tried to change priority, but nothing change.
Do you have any hint to solve this trouble and retrieve all the headers correctly?
Btw. those are the headers of the server answer:
Date:Wed, 09 Aug 2017 16:06:18 GMT