About setting the HTTPClient cookies

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