Http or https -> make it agnostic