Parses the URL and sets the Host header.