我使用 $site->setParameterPost
and$site->request('POST')->getBody()
来将数据发布到动作中,其中一个参数setParameterPost
是非常大的数据,并且它不通过 post 方法发送数据。我能做些什么?
$config = array('adapter' => 'Zend_Http_Client_Adapter_Curl' );
$site = new Zend_Http_Client('http://somewhere.tld/api/news', $config);
$site->setParameterPost(array(
'news' => $news, //very big data, without it data send properly
'modelName' => 'somemodel',
'method' => 'somemethod',
'key' => 'something',
'siteName' => $sitename,
));
$sitedata = $site->request('POST')->getBody();