Typo (missing s at end of Cookie):
getHTTPCookieForDomain -> getHTTPCookiesForDomain