简体   繁体   English

如何在python 2.7中添加对SNI的支持

[英]How to add support for SNI in python 2.7

An api from some website supports SNI(Server Name Indication). 某个网站的api支持SNI(服务器名称指示)。 But it also reminds me that SNI is only support after python 3.4. 但它也提醒我SNI仅在python 3.4之后支持。 However, I currently use python 2.7 and have no intention to upgrade to python3.4 yet. 但是,我目前使用python 2.7并且无意升级到python3.4。

Is there any solution to use SNI with python 2.7? 是否有任何解决方案使用SNI与python 2.7? Detailed explaination and examples are highly appreciated. 详细解释和例子非常受欢迎。

Many network security features, including SNI support, were backported from Python 3.4 and released in Python 2.7.9. 许多网络安全功能,包括SNI支持,都从Python 3.4向后移植,并在Python 2.7.9中发布。 See https://docs.python.org/2/whatsnew/2.7.html#pep-466-network-security-enhancements-for-python-2-7 请参阅https://docs.python.org/2/whatsnew/2.7.html#pep-466-network-security-enhancements-for-python-2-7

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM