cakephp http如何发送回响应

时间:2018-06-21 09:06:44

标签: xml api http cakephp

public function xml_post_test() {

  $response = $http->get('http://localhost/tests/receive_xml', $xml_string);
  debug ($response->body);
}

public function receive_xml() {
  //send to xml_post_test
}

我是CakePHP的新手。在receive_xml中,接收XML字符串。如何发送回xml_post_test?

0 个答案:

没有答案