Giving a URL connection established through the function htto.connection returns the value of a cookie indicated through the attribute name.

<http.connection.getCookie name='name'>    <http_connection /> !</http.connection.getCookie>
Example

Obtain the value of a cookie of an URL connection. The function http.connection returns an URL connection and with http.conection.getCookie is obtained the value of the cookie /PREF.

Copy
<xsql-script name=''>
<body>
<!-- GET COOKIE     -->
</set>

<!-- GET COOKIE NAME        -->
<print>NAME: </print>

<!-- GET COOKIE VALUE       -->
<print>VALUE: </print>

<!-- GET COOKIE PATH       -->
<print>PATH: </print>
</xsql-script>