Giving a URL connection through the function http.connection adds a cookie to the context of the URL connection.
 

1 http.connection.addCookie

<http.connection.addCookie
    name='name'
    value='value'
    path='path'
    domain='domain'
>
    <http_connection /> !
</http.connection.addCookie>
Example

Add a cookie to the context of an URL connection. The function http.connection returns a URL connexion and with http.conection.addCookie adds a new cookie to the context of this URL connection.

Copy
<xsql-script name='http_connection_addcookie'>
    <body>
        <set name='m_cookie'>
            <http.connection.addCookie name='cookie_test' value='value_test'>
                <http.connection url='http://www.google.es' />
            </http.connection.addCookie>
        </set>

        <println><m_cookie /></println>
    </body>
</xsql-script>