Next: process-transport, Previous: file-transport, Up: Transports [Contents]
GET with <poll-cron> = read.
POST/PUT (no poll) = write; payload as body by default.
GET/POST/PUT with
<write-target>url</write-target> = write by substituting
{{payload}} in <url> (percent-encoded); empty body.
<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>
urlRequest URL. For URL writes, include {{payload}}.
methodGET, POST, or PUT.
write-targetbody (default) or url.
headers / headerOptional request headers (name + value).
poll-cronRequired for read mode.
cookie-jarFilesystem 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).
authSee below.
Authentication (<auth type="...">):
noneNo credentials.
basic<username>, <password>.
header<token> sent as Authorization (Bearer-style).
formLogin 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).