Skip to content

save_http

Sends a byte stream via HTTP.

save_http url:string, [params=record, headers=record, method=string,
parallel=int, tls=bool, cacert=string, certifle=string,
keyfile=string, skip_peer_verification=bool]

The save_http operator performs a HTTP request with the request body being the bytes provided by the previous operator.

The URL to write to. The http:// scheme can be omitted.

The HTTP method, such as POST or GET.

The default is "POST".

The query parameters for the request.

The headers for the request.

Enables TLS.

Defaults to true.

Path to the CA certificate used to verify the server’s certificate.

Defaults to the Tenzir configuration value tenzir.cacert, which in turn defaults to a common cacert location for the system.

Path to the client certificate.

Path to the key for the client certificate.

Toggles TLS certificate verification.

Defaults to false.

save_http "example.org/api", headers={"X-API-Token": "0000-0000-0000"}

load_http