【问题标题】:How to add support for SNI in python 2.7如何在 python 2.7 中添加对 SNI 的支持
【发布时间】:2014-12-31 06:48:52
【问题描述】:

一些网站的api支持SNI(Server Name Indication)。 但它也提醒我,SNI 仅在 python 3.4 之后才支持。 不过我目前用的是python 2.7,暂时还没有升级到python3.4的打算。

在 python 2.7 中使用 SNI 有什么解决方案吗? 非常感谢详细的解释和示例。

【问题讨论】:

    标签: python api sni


    【解决方案1】:

    许多网络安全功能,包括 SNI 支持,都是从 Python 3.4 向后移植并在 Python 2.7.9 中发布的。见https://docs.python.org/2/whatsnew/2.7.html#pep-466-network-security-enhancements-for-python-2-7

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-17
      • 1970-01-01
      • 2011-08-18
      • 2023-03-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多