示例#1
0
 public function testGetHeaders()
 {
     $curl = new Request\Curl('http://www.hydrogen.local');
     $options = array('HTTPHEADER' => array('Accept: vnd.example-com.foo+json; version=1.1'));
     $curl->setOptArr($options);
     $result = $curl->exec();
     $curl->close();
     Variable::dump($result);
 }
示例#2
0
 public function masterAct()
 {
     //        var_dump('==='.$this->getRequest()->getAttribute("cd"));
     Variable::dump($this->getRequest()->getParams());
     exit;
 }