【问题标题】:Ruby/Typhoeus : set ssl_verifypeer globalRuby/Typhoeus:设置 ssl_verifypeer 全局
【发布时间】:2013-11-17 17:26:33
【问题描述】:

是否可以在全球台风中设置ssl_verifypeer?比如:

Typhoeus::Config.ssl_verifypeer = false

【问题讨论】:

    标签: ruby ssl typhoeus


    【解决方案1】:

    不,不是。很遗憾。我一直在考虑会话支持一段时间。像

    Typoeus::Session.new(ssl_verifypeer: false) do
      Typhoeus.get("https://www.example.com")
    end
    

    但目前没有办法全局配置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-24
      • 1970-01-01
      • 1970-01-01
      • 2014-09-02
      相关资源
      最近更新 更多