Removed use of getallheaders method