HTTPS Client in python with SSL Authentication -


i using python 2.x. need develop python client communicate via https authentication using certificates , keys. have searched internet newbie confused. done ssl answer 1 or httplib?

does have basic client example?

this idea of code like:

import ssl, socket  key = mykeyfile cert = mycertfile s = socket.socket(socket.af_inet, socket.sock_stream) ssl_sock = ssl.wrap_socket(s,keyfile=key,certfile=cert,server_side=false) ssl_sock.connect(("www.xxx.xxx", 443)) # call method server has exposed ssl_sock.callservermethod(arg1,arg2)   

thank you. jon.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -