/** * Create a new CookieJar object and automatically load into it all the * cookies set in an Http_Response object. If $uri is set, it will be * considered as the requested URI for setting default domain and path * of the cookie. * * @param Zend_Http_Response $response HTTP Response object * @param Zend_Uri_Http|string $uri The requested URI * @return Zend_Http_CookieJar * @todo Add the $uri functionality. */ public static function fromResponse(Zend_Http_Response $response, $ref_uri) { $jar = new self(); $jar->addCookiesFromResponse($response, $ref_uri); return $jar; }