3 ms·
"Please check the protocols you use curl/libcurl for" I had no idea Curl could be used for protocols other than HTTP/HTTPS.
by lucaspiller 12y ago
"Please check the protocols you use curl/libcurl for"
I had no idea Curl could be used for protocols other than HTTP/HTTPS.
- lloeki 12y agoFTP I did knew, but oh that list just took me by surprise. Suddenly I'll be using curl even more.
- super_mario 12y ago$ curl --version curl 7.40.0 (x86_64-apple-darwin13.4.0) libcurl/7.40.0 SecureTransport zlib/1.2.7 libidn/1.28 libssh2/1.4.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets Metalink $
- agwa 12y agoIndeed, and they have been a source of some nasty security vulnerabilities in the past. If you're using libcurl, it's a very good idea to restrict redirects to HTTP and HTTPS only (with CURLOPT_REDIR_PROTOCOLS), lest a malicious site redirect you to an imap or smtp URL.
- 616c 12y agoI was wondering if you could write a whole email client in bash using just curl/libcurl somehow, but I do not have enough foo for it. One day, one day.