Download a file without wget or curl

6,681

Solution 1

Using FTP:

ftp -A -v mirrors.sonic.net <<eof
binary
get cygwin/x86_64/setup.xz setup.xz
eof

Using OpenSSL - note this only works for HTTPS:

openssl s_client -quiet -connect superuser.com:443 <<eof
GET / HTTP/1.0
Host: superuser.com

eof

Using lynx:

lynx -source example.com > index.html

Solution 2

This works with telnet instead of lynx:

(echo 'GET /'; echo; sleep 1; ) | telnet example.com 80
Share:
6,681

Related videos on Youtube

Zombo
Author by

Zombo

Updated on September 18, 2022

Comments

  • Zombo
    Zombo over 1 year

    How would one go about downloading a file from the command line without using Wget or Curl?