Refactors curl body.