php用火狐poster工具模拟post提交的有关问题
时间:2021-07-01 10:21:17
帮助过:25人阅读
php用火狐poster工具模拟post提交的问题
我用火狐的poster工具模拟post提交。提交的到c.php
c.php的内容为
print_r($_POST);
?>
用火狐的poster工具,在url里面填写以下内容http://a.com/c.php
Content-Type: 设置的是text/html
提交的参数seckey为123 ,val为123
我按post提交,返回内容为array()
我把c.php修改成以下内容,打印$_GET
print_r($_GET);
?>
我按get提交,返回内容为array('seckey'=>'123','val'=>'123')
请问这是什么问题。为什么POST就提交过去的内容,打印数组为空
------解决方案--------------------第一步

第二步

第三步