In wget, the address goes in the environment variable or on the command line: the host, port 20001, and the username and password.
HTTPS and SOCKS5
For HTTPS, set the HTTPS variable too, because wget treats the two separately — without it, secure pages leave through your own connection IP. For SOCKS5, use curl on port 20481.