The character who burps slugs is Draco Malfoy in Harry Potter and the Chamber of Secrets.
After Harry and Ron are petrified by the Basilisk, Draco taunts them, boasting about helping his father find the culprit (unaware it was him). He then burps up slugs, claiming they resulted from a "nasty-tasting meal"—a disgusting, comedic moment highlighting his immaturity and cruelty.