更新时间:2022-05-12 06:26:42
PHP $HTTP_RAW_POST_DATA
不适用于enctype ="multipart/form-data". http://www.php .net/manual/en/ini.core.php#ini.always-populate-raw-post-data
PHP $HTTP_RAW_POST_DATA
is not available with enctype="multipart/form-data". http://www.php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data
因此,现在在服务器上,请执行以下操作:
So, now on the server I do the following:
if (count($_POST == 0){
$raw = file_get_contents('php://input');
}else{
$raw = '';
foreach($_POST as $key => $value) {
$raw = $raw.$key.'='.$value.'&';
}
}
似乎正在工作.