curl @VERSION@ for Mac OS X 10.4 Tiger

curl @VERSION@, the tool for getting and sending what a URL names, by Daniel
Stenberg and many others, built for Mac OS X 10.4 on every Mac that runs it:
PowerPC (G3, G4 and G5) and Intel. It is one universal program with its own
OpenSSL 3.5.9, nghttp2 1.71.0, libssh2 1.11.1, zlib 1.3.2, brotli 1.2.1 and
zstd 1.5.7 inside, so it speaks TLS 1.3 and HTTP/2 to the servers of today.
Tiger's own curl, 7.16.3 with OpenSSL 0.9.7, cannot open most HTTPS
sites now. This one needs only the Root certificates package, which
has the list of authorities it trusts (see Certificates, below). It puts in
place:

  /usr/local/bin/curl
      curl @VERSION@
  /usr/local/share/curl/cert.pem
      a link to /usr/local/etc/ssl/cert.pem, the root
      certificates of the Root certificates package
  /usr/local/share/man/man1/curl.1
      its manual page
  /usr/local/share/doc/curl-tiger
      this Read Me, the licenses, update-shell-profile.sh

Using it

The installer puts /usr/local/bin at the front of the PATH in your shell
profile (~/.bash_profile for bash, the shell Tiger gives new accounts, or
the .bash_login or .profile you already have) and keeps the old profile
beside it as .curlsave. Open a new Terminal window: curl is then this one,
and curl --version says @VERSION@. Tiger's own curl stays in /usr/bin, for
the programs and scripts that name it there.

  curl -O https://example.com/file.tar.gz
      save a file under its own name
  curl -L -o name.tar.gz https://...
      follow redirects, and save under the name you give
  curl -I https://www.apple.com/
      show only the headers of the answer
  curl -u name sftp://host/path/file
      get a file over SFTP; curl asks for the password

man curl is the whole manual, and curl -M prints it too. curl --help all
lists every option.

What is built in

HTTP/1.1 and HTTP/2; HTTPS with TLS 1.2 and 1.3; FTP and FTPS; SFTP and SCP;
SMTP, IMAP and POP3, with and without TLS; WebSockets; MQTT; TFTP; telnet;
DICT; gopher; and file. Answers compressed with gzip, brotli or zstd
(--compressed). IPv6. The HSTS and Alt-Svc caches.

Not built in: HTTP/3, LDAP, RTMP, Kerberos and SPNEGO, international domain
names, the public suffix list for cookies, and NTLM, which curl @VERSION@
leaves out unless it is asked for.

Certificates

curl checks the certificate of each HTTPS server against the roots in
/usr/local/etc/ssl/cert.pem, not against Tiger's keychain, whose roots
are from 2009. That file is Mozilla's list of the authorities to trust,
and the Root certificates package puts it there. Install that package
before curl: the Installer stops if it is not there. Tiger Packages
installs it with curl, and offers each new list as an update. curl reads
the file through the link /usr/local/share/curl/cert.pem.

--cacert FILE gives other roots for one command, and the environment
variable CURL_CA_BUNDLE gives them for all.

For SFTP and SCP, curl checks the server's key against ~/.ssh/known_hosts,
as ssh does, and stops at a server whose key is not there. -k (--insecure)
goes on without the check.

Uninstalling

In Terminal:

  sudo rm /usr/local/bin/curl
  sudo rm /usr/local/share/man/man1/curl.1
  sudo rm -rf /usr/local/share/curl
  sudo rm -rf /usr/local/share/doc/curl-tiger
  sudo rm -rf "/Library/Receipts/curl "*.pkg

curl is then Tiger's own again. The root certificates stay: other programs
use them too. If nothing else you use is in
/usr/local/bin, take the "Setting PATH for curl" lines out of your shell
profile.

How it was made

curl and its six libraries were cross-compiled on Linux with GCC 13.4 for
powerpc-apple-darwin8 (any G3 and up) and i686-apple-darwin8, against the
Mac OS X 10.4u SDK. Their source is not changed. curl loads only Tiger's
libSystem, CoreFoundation, CoreServices and SystemConfiguration. The
package and this disk image were made on Mac OS X 10.4.11 with its own
mkbom, pax and hdiutil.

Everything it was built from (the source of curl, OpenSSL, nghttp2,
libssh2, zlib, brotli and zstd, and the build scripts) is in
curl-@PKGVERSION@-tiger-source.tar.gz, beside this disk image.

Built @DATE@.
