checking response of the curl request, not just curl's return code