HTTPS/Client-authenticated: Difference between revisions
Content added Content deleted
(→{{header|Lasso}}: Adding Lasso HTTPS client-authenticated example) |
|||
Line 4: | 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. |
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}}== |
=={{header|Mathematica}}== |
||
<lang Mathematica>a = RunThrough["curl -E myCert.pem https://www.example.com", 1] |
<lang Mathematica>a = RunThrough["curl -E myCert.pem https://www.example.com", 1] |
||
For[ i=0, i < Length[a] , i++, SomeFunction[a]]</lang> |
For[ i=0, i < Length[a] , i++, SomeFunction[a]]</lang> |
||
=={{header|PicoLisp}}== |
=={{header|PicoLisp}}== |