首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
swoole_http_server无法接收json格式的数据
环境: php5.6.23 swoole:1.8.6 nginx:1.10.1 nginx作了tcp代理 以下是request的信息 object(swoole_http_request)#19 (3) { ["fd"]=> int(8) ["header"]=> array(4) { ["host"]=> string(20) "182.106.128.83:61050" ["accept"]=> string(3) "*/*" ["content-type"]=> string(16) "application/json" ["content-length"]=> string(3) "349" } ["server"]=> array(10) { ["request_method"]=> string(4) "POST" ["request_uri"]=> string(1) "/" ["path_info"]=> string(1) "/" ["request_time"]=> int(1474369659) ["request_time_float"]=> float(1474369659.2014) ["server_port"]=> int(61051) ["remote_port"]=> int(40440) ["remote_addr"]=> string(9) "10.27.1.5" ["server_protocol"]=> string(8) "HTTP/1.1" ["server_software"]=> string(18) "swoole-http-server" } }
发布于8年前 · 7 次浏览 · 来自
提问
T
Tokey
环境: php5.6.23 swoole:1.8.6 nginx:1.10.1 nginx作了tcp代理 以下是request的信息 object(swoole_http_request)#19 (3) { ["fd"]=> int(8) ["header"]=> array(4) { ["host"]=> string(20) "182.106.128.83:61050" ["accept"]=> string(3) "*/*" ["content-type"]=> string(16) "application/json" ["content-length"]=> string(3) "349" } ["server"]=> array(10) { ["request_method"]=> string(4) "POST" ["request_uri"]=> string(1) "/" ["path_info"]=> string(1) "/" ["request_time"]=> int(1474369659) ["request_time_float"]=> float(1474369659.2014) ["server_port"]=> int(61051) ["remote_port"]=> int(40440) ["remote_addr"]=> string(9) "10.27.1.5" ["server_protocol"]=> string(8) "HTTP/1.1" ["server_software"]=> string(18) "swoole-http-server" } }
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2018-01-19
野
野狼
求大神解答疑惑啊
赞
0
回复