SSL connection error with urllib2 and httplib in jython -


i trying ssl connection urllib2 , httplib in jython. trows error

_socket.sslerror: [errno 1] illegal state exception 

here code

    data={event.getitem().getactioncommand()}     headers= {"content-type": "application/x-www-form-urlencoded", "accept": "text/plain"}     url="requestb.in"     req=httplib.httpsconnection(url)     req.request("post", "/yaw83yya", data, headers)     response = conn.getresponse()     print response 

i have tried urllib got same error


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -