extract host, path, and port from client request