do curl with response to string