Home  >  Article  >  Backend Development  >  php用火狐poster工具模拟post提交的有关问题

php用火狐poster工具模拟post提交的有关问题

WBOY
WBOYOriginal
2016-06-13 11:50:40918browse

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就提交过去的内容,打印数组为空
------解决方案--------------------
第一步

第二步

第三步

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn