Technical References - [listmimeheaders]

Lists all the MIME header names and values sent from the remote browser.

[listmimeheaders params]MIME Header Tags[/listmimeheaders]

To display a list of all the MIME headers available, put a [listmimeheaders] context into a template.


The following are all the MIME headers available to this page:



The [listmimeheaders] context has optional parameters that are placed within the beginning tag in order to modify the list of MIME headers produced. The exact spelling of the MIME headers changes from web server to web server, so you may have to experiment with them.


Your web browser preferences show that your native language is:
[listmimeheaders name=HTTP_ACCEPT_LANGUAGE]


The following are the values of all the MIME headers whose name begins with "HTTP_ACCEPT":
[listmimeheaders name=HTTP_ACCEPT&exact=F]

The following parameters are optional to the [listmimeheaders] context:
NameThe name of the MIME header to list.
ExactT(rue) or F(alse) whether to exactly match the name of the parameter or match any name that contains the "name" value. (Default value is true.)

The following tags are available inside a [listmimeheaders]">[listmimeheaders] context:
[Name]The name of the MIME header.
[Value]The value associated with the MIME header.
A number from 1 to the total number of MIME headers, indicating this header's index position in the list.

Imagine you want to extract the domain name from an URL to be able to redirect a request to the same URL but to another domain:

[function name=CALL_DOMAIN][return][listmimeheaders name=host&exact=F][url][value][/url][/listmimeheaders][/return][/function]

and do something like this:

[showif [CALL_DOMAIN]][redirect][/showif]
[showif [CALL_DOMAIN]][redirect[thisurl]][/showif]


Top Articles:


BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

Download WebDNA Applications

WebDNA applications...


A compilation of some user's questions...

WebDNA Libraries

A list of available libraries for WebDNA...

Tips and Tricks

A list of user-submitted tips ...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

Related Readings:


[showif Comparison]Show This HTML[/showif]...




displays the last auto-generated number...


Compares the size...




The [xslt] Context allows the WebDNA programmer to 'apply' an XSL style sheet to an XML document and thus 'transform' the XML data into any format the programmer desires (usually HTML)...