Skip to content

cURLSession.SetCookie

Andrew Lambert edited this page Jan 8, 2023 · 4 revisions

libcURL.cURLSession.SetCookie

Method Signature

 Function SetCookie(Name As String, Value As String, Domain As String, Expires As Date = Nil, Path As String = "", HTTPOnly As Boolean = False) As Boolean

Parameters

Name Type Comment
Name String The name of the cookie.
Value String The value of the cookie.
Domain String The domain of the cookie.
Expires Date Optional. If specified, the expiration date of the cookie.
Path String Optional. If specified, the path of the cookie.
HTTPOnly Boolean Optional. If specified, whether the cookie shall have the httpOnly flag.

Return value

Returns True if the cookie was set successfully.

Remarks

Sets or updates a cookie. The cookie engine must be enabled.

See also

Clone this wiki locally