Making modifications to Request to retrieve protocol and domain name