Giving a cookie returns the value of the cookie inside the set of cookies for the domain of the URL connection.
1 http.connection.getCookieValue
<http.connection.getCookieValue>
<cookie /> !
</http.connection.getCookieValue>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecookie | Cookie | Cookie of which you want to obtain the value. |
Returns | |
---|---|
Type | Description |
string | Returns the value of a cookie used as argument of the function inside the set of cookies for the domain of the URL. |
Example
Obtain the value of a cookie. Through http.connection.addCookie a cookie is added to the context of the URL connection established by http.connection. Later, the value is recovered through the http.connection.getCookieValue.
Copy
<xsql-script name='http_connection_cookie_value'> <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> <http.connection.getCookieValue> <m_cookie /> </http.connection.getCookieValue> </println> </body> </xsql-script>