You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue #61 suggest using custom transport but I am unable to make it work. As per example I am using proxied transport as follows
`import http.client
from wordpress_xmlrpc.compat import xmlrpc_client
from wordpress_xmlrpc import Client, WordPressPost
transport = ProxiedTransport()
transport.set_proxy('http://proxy.server', 3128)`
But I get the following error in
wp = Client(WPHOST, WPUSER, WPPWD,transport)
File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
my code worksin an installaion with no proxy and where I use
wp = Client(WPHOST, WPUSER, WPPWD)
Any help. Any example of actual transport behind a proxy and if I am importing the correct python modules
Activity