我正试图POST soap xml请求到编码器方法。但是它没有接收到请求xml。一切看起来都很好,但什么都不起作用。
逐一尝试了所有注释的代码,但没有运气
function index()
{
if($_SERVER['REQUEST_METHOD'] === 'POST')
{
//echo "Dude! This is cool."; Works Fine!
//echo $this->input->get_post();
//echo $this->input->post();
//echo $this->input->post(NULL,TRUE);
print_r($_POST);
} else {
echo "Dude! This is not cool.";
}
}
try
function index()
{
if($_SERVER['REQUEST_METHOD'] == 'POST')
{
$data = file_get_contents("php://input");
echo $data;
} else {
echo "Dude! This is not cool.";
}
}
扩展输入类,在/application/core/