Brian Palmund · Aug 10, 2016 go to post

Perfect! It works like a charm....

The documentation on CGI Environment Variables only refers to a set of variables to available. I does not describe that all http headers is readable thru HTTP_<header>.

Thanks!

/Brian

Brian Palmund · Aug 10, 2016 go to post

One little detail. Any dash (-) is converted to underscore (_) so the correct code in this example is:

set ipCountry=%request.GetCgiEnv("HTTP_CF_IPCOUNTRY")

for a header called CF-IPCOUNTRY.