Added curls for xml and json formatting