Note: If the URL does not contain a specific component (e.g., port number, and fragment identifier here), it will be set to ''.