Linux Install CURL
The curl command allow you to download or upload data to another server.
Let begin the install.
sudo apt -y install curl
Once the install is finished, test for the version to make sure it is working.
curl --version curl 7.74.0 (x86_64-pc-linux-gnu) libcurl/7.74.0 OpenSSL/1.1.1n zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0 librtmp/2.3 Release-Date: 2020-12-09 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp Features: alt-svc AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
Example usage, display the headers of this website.
curl -I https://rodsnotes.com HTTP/2 200 date: Sun, 16 Jul 2023 01:37:10 GMT content-type: text/html; charset=UTF-8 link: <https://rodsnotes.com/wp-json/>; rel="https://api.w.org/" cf-cache-status: DYNAMIC report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=SRFdlNQ%2FVeAvHGi4gnyfYNaWylYsNWejVhHQFCT3Kht5hMdcb0Yxoqjy%2BrjehhKOKgf0C19JGffsgs6WQ9n8h3%2FTrJzRrrPy6EuzJlZ3FVk0Y2dtQLqyt%2FICIMcmBD9b"}],"group":"cf-nel","max_age":604800} nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800} server: cloudflare cf-ray: 7e7684b86c06715a-YUL alt-svc: h3=":443"; ma=86400
For more information on curl, view the man page in the terminal – man curl.
Share this content:
Leave a Reply