Next: , Previous: , Up: Transports   [Contents]


6.3.2 http-transport

<transport id="http-status" plugin="http-transport">
  <url>https://example.com/api/v1/status</url>
  <method>GET</method>
  <headers>
    <header name="Accept" value="application/json"/>
  </headers>
  <poll-cron>0 0 */5 * * *</poll-cron>
  <cookie-jar>/var/tmp/cookies.txt</cookie-jar>
  <auth type="none"/>
</transport>
url

Request URL. For URL writes, include {{payload}}.

method

GET, POST, or PUT.

write-target

body (default) or url.

headers / header

Optional request headers (name + value).

poll-cron

Required for read mode.

cookie-jar

Filesystem path for a persistent cookie jar. Omit for an in-memory jar private to that transport. When two or more HTTP transports use the same path, they share the on-disk cookie store (for example login and data transports reusing a session).

auth

See below.

Authentication (<auth type="...">):

none

No credentials.

basic

<username>, <password>.

header

<token> sent as Authorization (Bearer-style).

form

Login to <login-url> with <login-method>, then username/password or explicit <body> / <content-type>. Optional <relogin-on-status> (e.g. 401).

Tip: https:// works with the same options as http://. For a site that needs login cookies, share one <cookie-jar> path across the login/data transports and use auth type="form" (see Configuration Tips).