Currently I am calling an external webservice from command line in Unix :
curl --cert externalcertificate.cer --data @SampleRequest.xml -v https://world-service-dev.intra.a.com:4414/worldservice/CLIC/CaseManagementService/V1
I need to integrate this call in my python code . Then I will put retry logic and response validation around it , what is the optimal way of making this call ? Since its a one way SSL , I also need to make sure my web service call refers to the external server certificate kept on my server as well .
I could not use requests module of Python as it is not installed on the server, I tried using urllib2 but facing multiple issue related to ssl as it is a https call .
Now I am trying to call a sub process module :
subprocess.call(['curl', '-k', '-H' , 'content-type: application/soap+xml' ,'-d', etree.tostring(tree), '-v' ,'"https://world-service-dev.intra.aexp.com:4414/worldservice/CLIC/CaseManagementService/V1"'])
But getting an error message :
* Protocol "https not supported or disabled in libcurl
curl: (1) Protocol "https not supported or disabled in libcurl