简介
- curl作为客户端,支持多种协议访问,包括DICT、FILE、FTP、FTPS、GOPHER、GOPHERS、HTTP、HTTPS、IMAP、IMAPS、LDAP、LDAPS、MQTT、POP3、POP3S、RTMP、RTMPS、RTSP、SCP、SFTP、SMB、SMBS、SMTP、SMTPS、TELNET、TFTP、WS 和 WSS。
- curl官网
ftp
curl ftp://ip:port -u user:password -v
smb
curl -u "domain\username:passwd" smb://server.example.com/share/file.txt
telnet
curl telnet://remote.example.com
mqtt
订阅
curl mqtt://host/topic --output -
推送
curl -d payload mqtt://host/topic