http_server的request没有post属性

$http->on('request', function ($request, $response) { echo $request->post['uid']."<br>"; var_dump($request); }

结果是 object(swoole_http_request)#3 (3) { ["header"]=> array(8) { ["host"]=> string(17) "192.168.1.38:9503" ["user-agent"]=> string(82) "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0" ["accept"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8" ["accept-language"]=> string(35) "zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3" ["accept-encoding"]=> string(13) "gzip, deflate" ["connection"]=> string(10) "keep-alive" ["content-type"]=> string(33) "application/x-www-form-urlencoded" ["content-length"]=> string(2) "17" } ["server"]=> array(9) { ** ["request_method"]=> string(4) "POST"** ["request_uri"]=> string(1) "/" ["path_info"]=> string(1) "/" ["request_time"]=> int(1435571596) ["server_port"]=> int(9503) ["remote_port"]=> int(55520) ["remote_addr"]=> string(13) "192.168.1.163" ["server_protocol"]=> string(8) "HTTP/1.1" ["server_software"]=> string(18) "swoole-http-server" } ["fd"]=> int(1) } PHP Notice: Undefined property: swoole_http_request::$post in /zhanglei/https.php on line 5 为什么说swoole_http_request没有post属性呢?

2015-06-29 18:09
0
0

reallovelei - Swoole管理员

赞同来自:

已经解决 用了正在开发的 1.7.18版本

2015-06-30 09:29

要回复问题请先登录注册