Giving an URL connection established through the function http.connection adds a cookie to the context of the URL connection.
1 http.connection.getCookiePath
<http.connection.getCookiePath>
<cookie /> !
</http.connection.getCookiePath>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecookie | Cookie | Cookie of which you want to obtain the path. |
Returns | |
---|---|
Type | Description |
string | Returns the path of a cookie used as argument of the function inside the set of cookies for the domain of the URL. |
Example
Obtain the path of a cookie. Through http.connection.addCookie is added a cookie to the context of the URL connection established by http.connection. Later, the path is recovered through the http.connection.getCookiePath.
Copy
<xsql-script name='http_connection_cookie_path'> <body> <set name='m_cookie'> <http.connection.addCookie name='cookie_test' value='value_test' path='path_test'> <http.connection url='http://www.google.es' /> </http.connection.addCookie> </set> <println> <http.connection.getCookiePath> <m_cookie /> </http.connection.getCookiePath> </println> </body> </xsql-script>