Parameter |
Choices/Defaults |
Comments |
dest
required |
|
The location to save the file at the URL.
Be sure to include a filename and extension as appropriate.
|
force
bool
(added in 2.0) |
|
If yes , will always download the file. If no , will only download the file if it does not exist or the remote file has been modified more recently than the local file.
This works by sending an http HEAD request to retrieve last modified time of the requested resource, so for this to work, the remote web server must support HEAD requests.
|
force_basic_auth
bool
(added in 2.5) |
|
If yes , will add a Basic authentication header on the initial request.
If no , will use Microsoft's WebClient to handle authentication.
|
headers
(added in 2.4) |
|
Add custom HTTP headers to a request (as a dictionary).
|
proxy_password
(added in 2.0) |
|
Proxy authentication password.
|
proxy_url
(added in 2.0) |
|
The full URL of the proxy server to download through.
|
proxy_username
(added in 2.0) |
|
Proxy authentication username.
|
skip_certificate_validation
bool |
|
This option is deprecated since v2.4, please use validate_certs instead.
If yes , SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates.
|
timeout
(added in 2.4) |
Default:
10
|
Timeout in seconds for URL request.
|
url
required |
|
The full URL of a file to download.
|
url_password
|
|
Basic authentication password.
aliases: password
|
url_username
|
|
Basic authentication username.
aliases: username
|
use_proxy
bool
(added in 2.4) |
|
If no , it will not use a proxy, even if one is defined in an environment variable on the target hosts.
|
validate_certs
bool
(added in 2.4) |
|
If no , SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates.
If skip_certificate_validation was set, it overrides this option.
|