我有,POST请求看起来像这样=
_csrf=4S-6CVNqdEl94k2sncvZIoH0YkUAov1bXc-HOukDap7zPixqpnmCaVwPWfSjP4f3h6xaEMiXUtMVJAP4NEzZGw%3D%3D
&LoginForm%5Bserver%5D=5
&LoginForm%5Busername%5D=login
&LoginForm%5Bpassword%5D=passwordROOT
解析如下:
_csrf: 4S-6CVNqdEl94k2sncvZIoH0YkUAov1bXc-HOukDap7zPixqpnmCaVwPWfSjP4f3h6xaEMiXUtMVJAP4NEzZGw==
LoginForm[server]: 5
LoginForm[username]: 444444
LoginForm[password]: 32222222222224234
我有一个PHP代码,那就是试图从该请求中获取服务器,登录名和密码:
<?
$login = $_POST['LoginForm[username]'];
$password = $_POST['LoginForm[password]'];
$server = $_POST['LoginForm[server]'];
echo $login;
echo $password;
echo $server;
?>
结果所有'echo'为空。