You are here: TWiki> TWiki Web>TWikiVariables>VarHTTP (2005-03-27, TWikiContributor)

HTTP -- get HTTP headers

  • Called with the name of an HTTP header field, returns its value. Capitalization and the use of hyphens versus underscores are not significant.
  • Syntax: %HTTP%
  • Syntax: %HTTP{"Header-name"}%
  • Examples:
%HTTP%  
%HTTP{"Accept-language"}% en-US,en;q=0.5
%HTTP{"User-Agent"}% CCBot/2.0 (https://commoncrawl.org/faq/)
Topic revision: r2 - 2005-03-27 - 13:14:15 - TWikiContributor
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.VarHTTP