为了账号安全,请及时绑定邮箱和手机立即绑定

通过telnet发送POST数据,发送成功了,但$_POST输出却是空的?


POST /TEST/http/http002.php HTTP/1.1
Host:localhost
Content-Type:application/x-www-form-urlencoded 
Content-Length:34

username=abc808088&password=123456
-----------------------------------------
输出结果:
username=abc808088&password=123456HTTP/1.1 200 OK
Date: Tue, 17 Oct 2017 12:40:59 GMT
Server: Apache/2.4.27 (Win64) PHP/5.6.31
X-Powered-By: PHP/5.6.31
Content-Length: 182
Content-Type: text/html; charset=UTF-8

array(0) {}  //此处应显示为var_dump($_POST),结果确为空;



正在回答

2 回答

我也是你这种情况,响应了,但是$_post是空,解决了吗?

0 回复 有任何疑惑可以回复我~

.....

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

通过telnet发送POST数据,发送成功了,但$_POST输出却是空的?

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号