通過telnet發(fā)送POST數(shù)據(jù),發(fā)送成功了,但$_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 ----------------------------------------- 輸出結(jié)果: 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)?{}??//此處應(yīng)顯示為var_dump($_POST),結(jié)果確為空;
2018-01-01
我也是你這種情況,響應(yīng)了,但是$_post是空,解決了嗎?
2017-11-14
.....