`curl` is the swiss army knife for querying remote services using the #FTP, #FTPS, #HTTP, #HTTPS, #IMAP, #LDAP, #POP3, #SMTP or #TFTP protocol (and many more!)
Here is a tutorial by Himanshu Arora showing 5 basic #curl examples:
https://www.howtoforge.com/linux-curl-command/