HTTPCookie
HTTP Transport Cookie
Release Notes
attachGoldenThread
cast
copy
cutGoldenThread
cwu
delete
dpml
dump
entrypoint
exists
expire
fls
guid
hotRestart
HTTPCookie
HTTPRedirect
isUnix
locationToXPath
lock/unlock
log
loglevel
luceneIndex
luceneSearch
mapper
mapper-export
md5
mls
netkernel:*
new
Orchextra
org.ten60.util.aspell
org.ten60.util.image.SVG2PNG
org.ten60.util.image.Text2PNG
org.ten60.util.image.xchart
plainTextToXHTML
regex
relativizeURI
requestWithArgs
resolveURI
serialize
sleep
sqlBatch
sqlBooleanQuery
SQLEncodeElement
SQLEscapeXML
sqlQuery
sqlUpdate
stm
stopWatch
StringToCanonicalString
throw
toRelaxNG
trace
validateDTD
validateRNG
validateSchematron
validateXSD
xacml
xform
XHREFlinker
XHTMLredirect
XHTMLTidy
xinclude
xmltidy
xpatheval
xpur
xquery
xrl
xsign
xslfo-fop
xslfo-fop
xslt
xverify
License
Change History
NetKernel History
Acknowledgements

HTTPCookie

XML Interface to Cookies

Module

urn:org:ten60:netkernel:tpt:http

Definition

Format

<instr>
  <type>HTTPCookie</type>
  <operand>this:param:cookie</operand>
  <operator>
    <cookie>
      <get>myCookie</get>
    </cookie>
  </operator>
  <target>var:cookie</target>
</instr>

Syntax

ElementRulesDescription
typeMandatory HTTPCookie
operandMandatory always this:param:cookie
operatorMandatory the cookie argument
paramOptional [Set Only]An XML cookie to be set
targetMandatory the target resource

The HTTPCookie accessor gets and sets Cookies on the HTTP transport. It generates and consumes cookie data in an XML form making it easy to process cookies in a general XML application. The XML form of a cookie is

<cookie>
  <name>somecookieid</name>
  <value>some value</value>
  <path>somepath</path>
  <domain>somedomain</domain>
  <secure>is secure</secure>
  <maxage>some expiry</maxage>
  <comment>some comment</comment>
</cookie>

The elements name and value are mandatory, other elements can optionally be set.

Operator Syntax

The HTTPCookie accessor takes an operator argument which indicates whether to get or set a cookie. If get is used the get element contains the name of the cookie to retrieve. If set is used an XMLized cookie must be provided as the param on the instruction.

<cookie>
  <set /> or
  <get>cookieName</get>
</cookie>

1060® NetKernelTM Documentation
(C) 2003-2004 1060 Research Limited

Send Feedback

© 2003,2004, 1060® Research Limited
1060 registered trademark, NetKernel trademark of 1060 Research Limited