Skip to main content

Set-Cookies

Command Description

Set the local cookies to use in the HTTP request

Command Prototype

HTTP.SetCookies(dictCookies)

Parameter Description

ParameterRequiredTypeDefaultDescription
dictCookiesTrueexpression{}One or many Cookie names are paired with Cookie values, building JSON objects

Demo

TracePrint("--------------------------Set Cookies------------------- --------") 
//-------------------------------------------------------------------------------
//[Remarks] Set the Cookies used when the HTTP protocol submits data.
//Input parameter 1:
// dictCookies--Cookies. NOTE: The name of the credential, used to distinguish each credential
//out parameters:
// None
//Command prototype: HTTP.SetCookies(dictCookies)
HTTP.SetCookies({"test":"test"})