Use dynamic http protocol to handle http and https.