merge rest client POST changes from ulmus