the CookieManager may throw an IOException when trying to read data from the response