Since ISAPI is kind-of a successor to CGI, the 'default' HTTP headers get converted to CGI-style parameters, so you need to request HTTP_ACCEPT_LANGUAGE
using the extension control block's GetServerVariable
. Like so:
function GetVar(pecb: PEXTENSION_CONTROL_BLOCK; const key:AnsiString):AnsiString;
var
l:cardinal;
begin
l:=$10000;
SetLength(Result,l);
if not(pecb.GetServerVariable(pecb.ConnID,PAnsiChar(key),PAnsiChar(Result),l)) then
if GetLastError=ERROR_INVALID_INDEX then l:=1 else RaiseLastOSError;
SetLength(Result,l-1);
end;
//
GetVar(ecb,'HTTP_ACCEPT_LANGUAGE')