Smarter HTTP/HTTPS binding.