Check that the protocol matches HTTP/HTTPS