作者:港乄漫天地 | 来源:互联网 | 2018-05-15 02:23
很多composer库用到了file_get_contents('php:input')在swoole框架下PHP不设置php:input虽然可以在swoole回调通过$request->rawContent()获取数据,但这样就不能兼容第三方库请问PHP有什么方法可以主动...
很多composer库用到了
file_get_contents('php://input')
在swoole框架下PHP不设置
php://input
虽然可以在swoole回调通过
$request->rawContent()
获取数据,但这样就不能兼容第三方库
请问PHP有什么方法可以主动影响 file_get_contents('php://input')
取到的值吗
回复内容:
很多composer库用到了file_get_contents('php://input')
在swoole框架下PHP不设置 php://input
虽然可以在swoole回调通过$request->rawContent()
获取数据,但这样就不能兼容第三方库
请问PHP有什么方法可以主动影响 file_get_contents('php://input')
取到的值吗