The ssl-url collection
This collection provides SSL-enabled variants of various functions from net/url. Each function’s name begins with ssl:, and works like the corresponding function from net/url, except that it uses SSL to communicate with the remote server.
Here’s a trivial call that doesn’t use SSL:
(call/input-url (string->url "http://www.google.com/") (curryr get-pure-port '()) (curryr copy-port (current-output-port)))
Here’s the SSL-enabled equivalent (the URL is different because https://www.google.com redirects there):
(call/input-url (string->url "https://encrypted.google.com/") (curryr ssl:get-pure-port '()) (curryr copy-port (current-output-port)))
Just for fun, here’s a list of the symbols that it exports. I suspect that only the ones whose names contain "port" are useful.
ssl:call/input-url
ssl:combine-url/relative
ssl:current-proxy-servers
ssl:delete-impure-port
ssl:delete-pure-port
ssl:display-pure-port
ssl:file-url-path-convention-type
ssl:get-impure-port
ssl:get-pure-port
ssl:head-impure-port
ssl:head-pure-port
ssl:netscape/string->url
ssl:path->url
ssl:post-impure-port
ssl:post-pure-port
ssl:purify-port
ssl:put-impure-port
ssl:put-pure-port
ssl:string->url
ssl:url->path
ssl:url->string
ssl:url-exception?