simplify examples by defining a common curl() function