do curl with response to stdout