The http.cookies
property sets the cookies used by the HTTPClient.
The cookies must be in this format:
DOMAIN1~~~NAME1~~~VALUE1~~~PATH1~~~MAXAGE1~~~SECURE1|||DOMAIN2~~~...
where:
- DOMAIN is the domain the cookie can be sent to.
- NAME is
the cookie name.
- VALUE is
the cookie value.
- PATH is
the path prefix for which the cookie can be sent.
- MAXAGE is
the number of seconds for which the cookie is valid (expected to be a non-negative number, -1 signifies that the cookie should never expire).
- SECURE is
either true (the cookie can only be sent over secure connections, that is, HTTPS servers)
or false (the cookie is considered safe to be sent in the clear over unsecured
channels).
Note that the triple-tilde delimiter (
~~~)
must be used to separate the values.
A sample cookie specification is:
172.30.112.218~~~MYCOOKIE~~~ABRACADABRA=MAGIC~~~/junglegym/mycookie.jsp~~~-1~~~false
Note that the example cookie never expires and can be sent over unsecured channels.