'Extract both certificates and response payload from URL with Clojure
I'm trying to extract both the certificate from an URL and its payload response in a single request. My code right now looks like this:
(s/defn get-server-leaf-certificate
[url :- s/Str]
(let [conn (.openConnection url)]
(with-open [_ (.getInputStream conn)]
(some-> (.getServerCertificates conn) first))))
With this implementation I can extract the certificate but how can I also extract the response from this request?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
