php://input 得不到数据的问题

原创
2018/11/07 10:10
阅读数 1.4K

php://input 获取数据流不支持 enctype="multipart/form-data" 参数,check here.

 

php://input is a read-only stream that allows you to read raw data from the request body. In the case of POST requests, it is preferable to use php://input instead of $HTTP_RAW_POST_DATA as it does not depend on special php.ini directives. Moreover, for those cases where $HTTP_RAW_POST_DATA is not populated by default, it is a potentially less memory intensive alternative to activating always_populate_raw_post_dataphp://inputis not available with enctype="multipart/form-data".

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
1 收藏
0
分享
返回顶部
顶部