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
Post a Comment