The proxy server used to host Web Apps adds a few key HTTP_X headers. The most useful of these is the HTTP_X_Forwarded_For header that holds the IP address the proxy sees for the mobile device.
I noticed another header called HTTP_X_Country_Code and was expecting it to contain the 2 or 3 letter country code, but it had a number. In my case with a test web app and being in South Africa, it held the number "190" and I cannot work out how this relates to any known country code.
Is this particular header non-functional and should I just use the IP in the Forwarded_For header to work out the country?
Thanks,
Stephen

Reply With Quote


