handle curl class