Next: Auth Retry Policy, Previous: Overview and Hosts, Up: Ariston Cloud API Reference [Contents]
The plugin mimics the official browser XHR client. Default
request headers (see ar_setup_headers):
Accept: application/json, text/javascript, */*; q=0.01 Accept-Language: it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Connection: keep-alive Ajax-Request: json X-Requested-With: XMLHttpRequest Origin: https://www.chaffolink.remotethermo.com/ Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin Sec-Fetch-User: ?1
JSON bodies use
Content-Type: application/json; charset=utf-8.
Authentication is cookie-based (libsoup cookie jar). There is no
Authorization header. A jar that only contains the
ar.loggedUser profile cookie is not treated as a usable
session; other auth cookies must be present
(ar_http_has_usable_session).
Login sends rememberMe: true. Session cookies without
Expires/Max-Age may be promoted to a finite max-age so a
text jar could persist them; this plugin currently keeps the jar
in-memory only.