Handle two types of from request.