nsx curl implementation