The CookieInfo
class contains a Cookie
object
and information about the cookie that you can use for cookie management.
To obtain a CookieInfo
object, call the convert
method
of a SetCookieField
object in a response message.
Unlike browsers, MATLAB® does not provide an automatic cookie store. You must save cookies on your own and send them back to servers as needed.
obj = matlab.net.http.CookieInfo(pName,pValue)
creates
a CookieInfo
object and sets the property specified
by pName
to the value specified by pValue
.
You can specify several argument pairs in any order as pname1,pvalue1,...,pnameN,pvalueN
.
For a list of property names and their values, see Properties.
Use this constructor for testing.
collectFromLog | Latest CookieInfo objects from HTTP response message history |
These methods implement the equivalent MATLAB functionality for this class.
char | Cookie info as character vector |
string | Cookie info as string |
Sealed | true |