erlang访问https地址
2016-02-22 00:00
537 查看
参考How do I do an HTTPS request with Erlang?
1> application:start(inets). ok 2> application:start(ssl). ok 3> http:request(head, {"https://example.com", []}, [{ssl,[{verify,0}]}], []). {ok,{{"HTTP/1.1",200,"OK"}, [{"cache-control","max-age=0, proxy-revalidate"}, {"date","Sun, 23 May 2010 00:38:33 GMT"}, {"server","BAIDA/1.0.0"}, {"content-type","text/html; charset=windows-1251"}, {"expires","Sun, 23 May 2010 00:38:33 GMT"}, {"set-cookie", "uid=9041986921274575113; domain=.example.com; path=/; expires=Tue, 19 Jan 2038 03:14:07 GMT"}], []}}
相关文章推荐
- iOS网络编程之一——iOS网络框架简介
- iOS网络编程之二——NSURLSession的简单使用
- iOS网络编程之三——NSURLConnection的简单使用
- Centos6.5查看nginx并发连接数和TCP连接状态命令
- 计算机网络9--计算机网络性能
- HTTP协议上传boundary确定&下载content-disposition理解
- TCP/IP、Http、Socket的区别
- java35.HTTP通信------使用HttpClient进行Post方式通信
- 前端开发必备!Emmet使用手册(转自 http://www.w3cplus.com/tools/emmet-cheat-sheet.html)
- keepalived(nginx)+httpd实现动静分离
- Sublime text 3 中Package Control 的安装与使用方法(转自 http://devework.com/sublime-text-3-package-control.html)
- java34.HTTP通信------使用HttpClient进行Get方式通信
- 开源一个网络图片浏览器HooPhotoBrowser
- okhttp
- Unity使用protobuf-net实现的网络框架
- iscsi 挂载网络存储及存储访问
- Sublime Text 3 破解版 + 注册机 + 汉化包(转自 http://www.cnsecer.com/251.html)
- sublime text 3(Build 3103)最新注册码(转自 http://blog.csdn.net/the_victory/article/details/50681152)
- 常见HTTP状态码
- android基础之二——网络编程(二)