HTTPS/Client-authenticated: Difference between revisions

→‎{{header|Lasso}}: Adding Lasso HTTPS client-authenticated example
(→‎{{header|Lasso}}: Adding Lasso HTTPS client-authenticated example)
Line 4:
 
This task is in general useful for use with [[Creating a SOAP Client|webservice client]]s as it offers a high level of assurance that the client is an acceptable counterparty for the server. For example, [http://aws.amazon.com/ Amazon Web Services] uses this style of authentication.
 
=={{header|Lasso}}==
<lang Lasso>local(sslcert = file('myCert.pem'))
local(x = curl('https://sourceforge.net'))
#x->set(CURLOPT_SSLCERT, #sslcert->readstring)
#sslcert->close
#x->result->asString</lang>
 
=={{header|Mathematica}}==
<lang Mathematica>a = RunThrough["curl -E myCert.pem https://www.example.com", 1]
For[ i=0, i < Length[a] , i++, SomeFunction[a]]</lang>
 
 
=={{header|PicoLisp}}==
140

edits