Make the protocol dynamic, it can be http or https