Download a file from a HTTP server.
This task connects to a HTTP server and copy a file to Kestra's internal storage.
type: "io.kestra.plugin.core.http.Download"
Download a CSV file.
id: download
namespace: company.team
tasks:
- id: extract
type: io.kestra.plugin.core.http.Download
uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/orders.csv
YES
The fully-qualified URI that points to the HTTP destination
YES
If true, allow a failed response code (response code >= 400)
Deprecated, use options.allowFailed
instead.
YES
The full body as a string
YES
application/json
The request content type
YES
true
Should the task fail when downloading an empty file.
YES
The form data to be send
YES
The headers to pass to the request
YES
GET
The HTTP method to use
NO
{
"followRedirects": "true",
"allowFailed": "false",
"defaultCharset": "UTF-8"
}
The HTTP request options
NO
The SSL request options
The status code of the response.
The headers of the response.
The content-length of the response.
uri
The URL of the downloaded file on Kestra's internal storage.
YES
duration
The time allowed to establish a connection to the server before failing.
YES
PT5M
duration
The time allowed for a read connection to remain idle before closing it.
YES
The password for HTTP basic authentication.
YES
The username for HTTP basic authentication.
YES
false
If true, allow a failed response code (response code >= 400)
NO
The authentification to use.
NO
The password for HTTP basic authentication.
NO
The username for HTTP basic authentication.
NO
duration
The time allowed to establish a connection to the server before failing.
NO
duration
The time an idle connection can remain in the client's connection pool before being closed.
YES
UTF-8
The default charset for the request.
YES
true
Whether redirects should be followed automatically.
NO
ALL
TRACE
DEBUG
INFO
WARN
ERROR
OFF
NOT_SPECIFIED
The log level for the HTTP client.
NO
REQUEST_HEADERS
REQUEST_BODY
RESPONSE_HEADERS
RESPONSE_BODY
The enabled log.
NO
The maximum content length of the response.
NO
The proxy configuration.
NO
The address of the proxy server.
NO
The password for proxy authentication.
NO
The port of the proxy server.
NO
DIRECT
HTTP
SOCKS
The type of proxy to use.
NO
The username for proxy authentication.
NO
duration
The time allowed for a read connection to remain idle before closing it.
NO
duration
The maximum time allowed for reading data from the server before failing.
NO
The SSL request options
NO
The timeout configuration.
YES
The address of the proxy server.
YES
The password for proxy authentication.
YES
The port of the proxy server.
YES
The username for proxy authentication.
YES
Whether to disable checking of the remote SSL certificate.
Only applies if no trust store is configured. Note: This makes the SSL connection insecure and should only be used for testing. If you are using a self-signed certificate, set up a trust store instead.
YES
The token for bearer token authentication.