Mac curl 支持 https安装

openssl 安装

curl 安装

MAC命令行下使用代理

  • vim .zshrc

  • alias setproxy="export https_proxy=http://127.0.0.1:1087 http_proxy=http://127.0.0.1:1087 all_proxy=socks5://127.0.0.1:1080 no_proxy=localhost,192.168.,127.0."

  • alias unsetproxy="unset ALL_PROXY; unset https_proxy; unset http_proxy; unset no_proxy"

  • 某些https接口只配置 all_proxy 没用,会连接超时,需要配置上 https_proxy

参考文档

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。