how to call restful zend controller usin curl in php?
问题 <?php require_once 'Zend/Session/Namespace.php'; class ApiController extends Zend_Rest_Controller { public function init() { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); } public function indexAction() { $query=$this->getRequest()->getParam('query'); $this->getResponse() ->appendBody("hi"); $this->getResponse()->setHttpResponseCode(200); } public function getAction() { $query=$this->getRequest()->getParam('id'); $this->getResponse() ->appendBody(