Apache-AxKit-Plugin-AddXSLParams-Request
view release on metacpan or search on metacpan
this group will contain *all* the headers returned by the request
object's headers_in() method using the convention:
request.headers.*fieldname* where *fieldname* is name of the given HTTP
header field, forced to lower case.
If any HTTP Cookies are found in the headers, they will be parsed and
values available as XSLT params using the naming convention:
request.cookies.*yourcookiename*. See the Cookies group below for an
alternative way to access cookies.
More common headers include:
* accept
* content-type
* accept-charset
* accept-encoding
* accept-language
* connection
* host
* pragma
* user-agent
* from
* referer
Examples:
<xsl:param name="request.headers.accept-language"/>
<xsl:param name="request.headers.host"/>
<xsl:param name="request.headers.user-agent"/>
<xsl:param name="request.headers.referer"/>
Cookies
Provides an *alternative* way to access the HTTP Cookies header for
those folks that want to get at the cookie data but don't want to pull
in all of the other HTTP headers.
Param Prefix: request.cookies.*
Implemented Fields:
Cookie values are made available as params using the convention:
request.cookies.*yourcookiename*
Examples:
<xsl:param name="request.cookies.oreo"/>
<xsl:param name="request.cookies.chocolate-chip"/>
<xsl:param name="request.cookies.fortune"/>
VerboseURI
Offers fine-grained access to the URI requested (via Apache::URI's
parse_uri() method.
Param Prefix: request.uri.*
Implemented Fields:
* scheme
* hostinfo
* user
* password
* hostname
* port
* path
* rpath
* query
* fragment
Examples:
<xsl:param name="request.uri.path"/>
<xsl:param name="request.uri.scheme"/>
<xsl:param name="request.uri.port"/>
DEPENDENCIES
* libapreq
* Apache::Request
* Apache::Cookie
* Apache::URI
* AxKit (1.5 or greater)
AUTHOR
Kip Hampton, khampton@totalcinema.com
SEE ALSO
AxKit, Apache::Request, libapreq, Apache::Cookie, Apache::URI
( run in 0.322 second using v1.01-cache-2.11-cpan-e1769b4cff6 )