随笔分类 -  curl

摘要:原文地址:http://blog.sina.com.cn/s/blog_4b9eab320100slyw.html 可以看作命令行浏览器 1、开启gzip请求curl -I http://www.sina.com.cn/ -H Accept-Encoding:gzip,defalte2、监控网页的响应时间curl -o /dev/null -s -w "time_connect: %... 阅读全文
posted @ 2017-09-28 17:52 Mr.R123
摘要:1、发送邮件的命令如下: ./curl --verbose -s --url "smtp://mail.hundsun.com" --mail-from "shenhb@hundsun.com" --mail-rcpt "510336806@qq.com" --upload-file mail.txt --user "shenhb:FUCKhs123" ... 阅读全文
posted @ 2017-09-28 17:45 Mr.R123
摘要:1、本来想要开发一个邮件发送接口,按照官网例子写下代码,编译后出现如下问题: 2、curl是从官网下载的最新版本安装的,安装时也选择了 --enable-smtp,编译指定了库路劲 3、查看指定安装的新curl如下: 4、看起来一切正常,但是就是把上面的错误,后面看到官网上大神回复使用如下命令查看: 阅读全文
posted @ 2017-09-28 15:19 Mr.R123
摘要:以下是使用curl 7.55发送smtp邮件的封装类: smtp.hpp static const std::string base64_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz" "0123456789+/... 阅读全文
posted @ 2017-09-28 14:01 Mr.R123