GetServerVariable or GetHeader?
Posted on 2006-07-10
Im making an ISAPI filter and i need to check the value of HTTP HEADER - "HTTP_X_UP_SUBNO" which is a header which WAP phones use.
Im using -
if (pCtxt->GetServerVariable("HTTP_X_UP_SUBNO", szAddress, &dwSize))
// do something
it always goes into the failed code with GetLastError returning ERROR_INVALID_INDEX.
Am i using the wrong function? GetHeader doesnt seem to work either.
Ive done a server variables dump in ASP and i definately have the 'HTTP_X_UP_SUBNO' header and it has a value but still i get ERROR_INVALID_INDEX.