client- setCookieJar client- setUri uri response client- request Zend_

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
$client->setCookieJar();
$client->setUri($uri);
$response=$client->request(Zend_Http_Client::GET);
$cookie = new Zend_Http_CookieJar;
$cookie->addCookiesFromResponse($response,$client->getUri());
$cok = $cookie->getAllCookies();
$client->setCookieJar($cookie);
echo "<pre>";
print_r($client);
//print_r($cok[0]);
echo "</pre>";
exit;