且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Cakephp XML HTTP服务器如何从客户端获取请求

更新时间:2023-08-31 19:38:58

在你的 $ http->获取电话,您将 $ xml_string 作为参数传递。您应该能够在服务器函数中接收该函数,只需更改声明如下:

In your $http->get call, you're passing the $xml_string as a parameter. You should be able to receive that in your server function simply by changing the declaration as follows:

public function server($xml_string) {

请注意,可能存在URL编码这里要考虑的问题;我从来没有使用过这种设置。

Note that there may be URL encoding issues to consider here; I've never worked with this sort of setup.