React PHP get POST data

时光毁灭记忆、已成空白 提交于 2019-12-05 13:10:25

I repeat the last edit to my question here, so this question can be marked as answered.

Nevermind, found an answer here. Basically, it seems that React PHP does not support an easy way to read POST data yet. What we can do, though, is to read data as soon as it comes, watching the event data of the $request object:

$request->on('data', function($data) {
  // Here $data contains our POST data.
  // The $request needs to be manually ended, though.
});
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!