Get the value of an HTTP header
Category:
ASP, HTML and XMLType:
SnippetsDifficulty:
IntermediateAuthor:
Intelligent Solutions Inc.Version Compatibility: ASP
More information:
This function takes the name of an HTTP header (minus the HTTP_ prefix) as a parameter and returns its value. Examples of valid values for the HeaderName parameter include ACCEPT, REFERER, and USER_AGENT.
Not all headers will be populated in all cases, and if there is no value for the requested header (or no such header) the function will return an empty string.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: