|
发表于 2010-4-8 18:06:57
|
显示全部楼层
我在 example_api中加了
function tag_post() {
$message=array('id'=>'1','name'=>'hello');
$this->responce($message,200);
}
然后在
rest_test.php中
function new_tag() {
$categoryname=$this->post('categoryname');
$code=$this->post('code');
$data=array('categoryname'=>$categoryname,'code'=>$code);
$responce = $this->rest->post("tag",$data);
echo "<pre>";
//print_r($responce);
echo "</pre>";
echo $this->rest->debug();
}
然后运行,就报错了
Errors
Code: 22
Message: HTTP response code said error |
|