我用带php文件的地址,进行post可以接收到数据
http://127.0.0.1/rest/PUSHREPORT/index.php用简写的地址,进行post接收不到数据
http://127.0.0.1/rest/PUSHREPORT

解决方案 »

  1.   

    接收代码
      $streamData = isset($GLOBALS['HTTP_RAW_POST_DATA'])? $GLOBALS['HTTP_RAW_POST_DATA'] : ''; 
      $binput =false;
      if(empty($streamData))
      { 
        $binput=true;
        writeLog("HTTP_RAW_POST_DATA is empty");
    writeLog("php://input");
        $streamData = file_get_contents('php://input'); 
      } 
      

  2.   

    方法二,可以执行index.php里边的代码,就是接收不到数据
      

  3.   

    我用的是Apache
    xampp lite 2016
      

  4.   

    我的win10系统,不带index.php是正常可以接收,但是在xp系统上就接收不了。难道是配置的问题吗