I am attempting to use XMLRPC to post from Python to Wordpress. The website has SSL and I am getting the following error:
SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:720)
I have spent almost a full day trying to resolve this, but cannot figure it out. Can anyone help? Thanks.
This solved my problem.
import sys
if sys.version_info >= (2, 7, 9):
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.