HTTPS/Client-authenticated: Difference between revisions

No edit summary
Line 75:
}
</lang>
 
=={{header|Julia}}==
<lang julia>using HTTP, MbedTLS
 
conf = MbedTLS.SSLConfig(true, log_secrets="/utl/secret_key_log.log")
resp = HTTP.get("https://httpbin.org/ip", sslconfig=conf)
 
println(resp)
</lang>{{output}}<pre>
HTTP.Messages.Response:
"""
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.9.0
Date: Wed, 28 Nov 2018 08:42:25 GMT
Content-Type: application/json
Content-Length: 30
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Via: 1.1 vegur
 
{
"origin": "66.91.7.198"
}
"""
</pre>
 
 
=={{header|Kotlin}}==
4,103

edits