嗨你知道$ response-> getBody()和$ response-> getRawBody()之間的區別是什麼?Zend_Http_Response的getRawBody()和getBody()方法之間的區別?
$this->_client->setUri('http://www.google.com/ig?hl=en');
try {
$response = $this->_client->request();
}catch(Zend_Http_Exception $e)
{
echo 'Zend http Client Failed';
}
echo get_class($response);
if($response->isSuccessful())
{
$response->getBody();
$response->getRawBody();
}
我現在明白了差異,謝謝花時間回答, – 2011-02-26 07:43:43