Use the scheme of the query URI rather than looking for the default SSL port 443 when setting `use_ssl` on outgoing query requests.