better protocol handling for getTransportURL