0
对于android应用程序,需要将数据作为xml请求发布到php文件。 如何在PHP端读取XML请求。如何在php中接受XML发布请求?
对于android应用程序,需要将数据作为xml请求发布到php文件。 如何在PHP端读取XML请求。如何在php中接受XML发布请求?
使用php://input和file_get_contents()
获取原始输入。
$content = file_get_contents('php://input');