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

ClassNameDescription
stringurlURL.
stringnameCookie name.

Return value

ClassDescription
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.

Copyright © Cooker All rights reserved.