cookiemanager class : GetCookies(string,string) method
Description
Gets cookies with the specified name associated with the specified URL.
Syntax
instance.GetCookies(string url, string name)
Arguments
Class | Name | Description |
string | url | URL. |
string | name | Cookie name. |
Return value
Class | Description |
list{cookie} | A list of cookies. |
Sample code
1: | cookiemanager cm; |
2: | list{cookie} coos = cm.GetCookies("https://example.com", "cookie_name"); |
Notes
There can be multiple cookies with the same name.
Links for reference
None.