data/TWiki/VarHTTP.txt,v
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
permissions -rw-r--r--
RELEASE 4.2.0 freetown
     1 head	1.2;
     2 access;
     3 symbols;
     4 locks; strict;
     5 comment	@# @;
     6 
     7 
     8 1.2
     9 date	2008.01.22.03.21.33;	author TWikiContributor;	state Exp;
    10 branches;
    11 next	1.1;
    12 
    13 1.1
    14 date	2006.06.25.16.26.28;	author TWikiContributor;	state Exp;
    15 branches;
    16 next	;
    17 
    18 
    19 desc
    20 @buildrelease
    21 @
    22 
    23 
    24 1.2
    25 log
    26 @buildrelease
    27 @
    28 text
    29 @%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.1" version="2"}%
    30 %META:TOPICPARENT{name="TWikiVariables"}%
    31 #VarHTTP
    32 ---+++ HTTP -- get HTTP headers
    33    * Called with the name of an HTTP header field, returns its value. Capitalization and the use of hyphens versus underscores are not significant.
    34    * Syntax: =%<nop>HTTP%=
    35    * Syntax: =%<nop>HTTP{"Header-name"}%=
    36    * Examples:
    37      | =%<nop>HTTP%= | %HTTP% |
    38      | =%<nop>HTTP{"Accept-language"}%= | %HTTP{"Accept-language"}% |
    39      | =%<nop>HTTP{"User-Agent"}%= | %HTTP{"User-Agent"}% |
    40    * __%X% Note:__ You can see the HTTP headers your browser sends to the server on a number of sites e.g. http://www.ericgiguere.com/tools/http-header-viewer.html
    41    * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarHTTPS][HTTPS]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarREMOTEADDR][REMOTE_ADDR]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarREMOTEPORT][REMOTE_PORT]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarREMOTEUSER][REMOTE_USER]]
    42 
    43 @
    44 
    45 
    46 1.1
    47 log
    48 @buildrelease
    49 @
    50 text
    51 @d1 1
    52 a1 1
    53 %META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.2" version="1"}%
    54 a3 1
    55 
    56 d13 1
    57 a13 1
    58    * Related: [[#VarHTTPS][HTTPS]], [[#VarREMOTEADDR][REMOTE_ADDR]], [[#VarREMOTEPORT][REMOTE_PORT]], [[#VarREMOTEUSER][REMOTE_USER]]
    59 @