Gnomon Request Collections Sample

Sample #2

This is an example of gnomon accessing the request collections. For more information on the functions, see the manual. Most functions can be called without arguments to return the entire collection, or with keys to return just a particular value.

The collections are:

See the source page and the stylesheet that have produced the output that you see.

Cookies

<cookies><cookie name="npslis" secure="0" HttpOnly="0" value="781445D3-397E-FB71-482F-EAC1AF3D3390" /><cookie name="WEBFERRETID" secure="0" HttpOnly="0" value="BfbXGwE5vSoqe4DLKtZmqAAA" /><cookie name="xsrf" secure="0" HttpOnly="0" value="68C7E9C0EB1B9967F080896EE2C5E57E9983D42C" /></cookies>

Query String

Click here to add a simple query string to the request

<request><template id="0"><query-string /></template></request>

Form

<request><template id="0"><form /></template></request>

Parameters

Parameters are an optional gnomon feature. The parameter template-id, which identifies the current template, is always present in the parameters collection. See the templates sample for more information on templates.

<request><template id="0"><parameters><item name="template-id" value="0"><value index="0">0</value></item></parameters></template></request>

Server Variables

<server-variables><variable name="APPL_MD_PATH" value="/LM/W3SVC/2/ROOT" /><variable name="APPL_PHYSICAL_PATH" value="c:\gnomon\" /><variable name="CONTENT_LENGTH" value="0" /><variable name="LOCAL_ADDR" value="10.80.80.59" /><variable name="GATEWAY_INTERFACE" value="CGI/1.1" /><variable name="HTTP_ACCEPT" value="text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" /><variable name="HTTP_ACCEPT_LANGUAGE" value="en-us,en;q=0.5" /><variable name="HTTP_USER_AGENT" value="CCBot/1.0 (+http://www.commoncrawl.org/bot.html)" /><variable name="HTTP_COOKIE" value="WEBFERRETID=BfbXGwE5vSoqe4DLKtZmqAAA; npslis=781445D3%2D397E%2DFB71%2D482F%2DEAC1AF3D3390; xsrf=68C7E9C0EB1B9967F080896EE2C5E57E9983D42C" /><variable name="HTTPS" value="off" /><variable name="INSTANCE_ID" value="2" /><variable name="INSTANCE_META_PATH" value="/LM/W3SVC/2" /><variable name="PATH_INFO" value="/gnomon/samples/simple/simple2.acds" /><variable name="PATH_TRANSLATED" value="c:\gnomon\gnomon\samples\simple\simple2.acds" /><variable name="REMOTE_ADDR" value="38.107.191.106" /><variable name="REMOTE_HOST" value="38.107.191.106" /><variable name="REQUEST_METHOD" value="GET" /><variable name="SCRIPT_NAME" value="/gnomon/samples/simple/simple2.acds" /><variable name="SERVER_NAME" value="gnomon.npsl.co.uk" /><variable name="SERVER_PORT" value="81" /><variable name="SERVER_PORT_SECURE" value="0" /><variable name="SERVER_PROTOCOL" value="HTTP/1.1" /><variable name="SERVER_SOFTWARE" value="Microsoft-IIS/7.0" /><variable name="URL" value="/gnomon/samples/simple/simple2.acds" /></server-variables>