changed getHeaders to getResponse.