Chagned response->getHeader() to response->header to match api of request