LinuxCommandLibrary

https

Download files securely over HTTPS

TLDR

View documentation for the original command

$ tldr http
copy

SYNOPSIS

No standard syntax. Use curl [options] https://URL or wget [options] https://URL.

DESCRIPTION

HTTPS (Hypertext Transfer Protocol Secure) is a secure version of HTTP using TLS/SSL encryption for web communication. Linux does not include a built-in command named https. Running https in a terminal yields a command not found error.

To handle HTTPS URLs, use established tools like curl or wget. For example:
curl https://example.com fetches content securely.
wget https://example.com/file downloads files with automatic TLS support.

These tools manage certificates, redirects, and proxies. Browsers like lynx or links also support HTTPS for text-based browsing. For scripting, curl is preferred due to its versatility in handling headers, POST data, and authentication.

Custom scripts or aliases can simulate an 'https' command, e.g., alias https='curl -s', but this is non-standard.

CAVEATS

Command does not exist; always results in 'command not found'. Rely on curl or wget for HTTPS tasks to avoid errors with certificates or proxies.

QUICK HTTPS TEST

Test connectivity: curl -I https://www.google.com (shows headers).

CERTIFICATE HANDLING

Ignore cert errors (insecure): curl -k https://URL. Use --cacert for custom CAs.

HISTORY

HTTPS protocol invented in 1994 by Netscape for secure web traffic. Linux/Unix favors modular tools like curl (1996) over protocol-specific commands.

SEE ALSO

curl(1), wget(1), lynx(1), openssl(1)

Copied to clipboard