http_download
Download a file from an HTTP/HTTPS URL and save it to disk. Supports resume for interrupted downloads, custom output paths, proxy configuration, and Tor anonymization. If no output path is specified, the file is saved to /tmp/owl_downloads/ with a filename derived from the URL or Content-Disposition header. Returns the file path, size, content type, and download timing.
Usage Example
Parameters
Required
urlstringrequiredThe URL of the file to download. Supports http:// and https:// protocols.
Optional
output_pathstringFull path where the file should be saved. If not specified, saves to /tmp/owl_downloads/ with filename derived from URL or Content-Disposition header.
headersstringHTTP headers as a JSON object or string.
cookiesstringCookies to send with the request. Accepts 'name=value; name2=value2' string or a JSON array from browser_get_cookies.
proxy_typeenumhttphttpssocks4socks5+1 moreType of proxy server.
proxy_hoststringProxy server hostname or IP address.
proxy_portstringProxy server port number.
proxy_usernamestringUsername for proxy authentication.
proxy_passwordstringPassword for proxy authentication.
use_torbooleanUse built-in Tor proxy for anonymous download. Default: false
timeoutstringDownload timeout in milliseconds. Default: 30000 (30 seconds)
ssl_verifybooleanVerify SSL/TLS certificates. Default: true
ca_cert_pathstringPath to custom CA certificate bundle file.
resumebooleanResume an interrupted download if the server supports byte ranges. Default: false
user_agentstringCustom User-Agent header string.
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}