nginx模块开发获取post参数

> 您好!
>     我想请问下nginx模块里面怎么获取post参数,能有具体的代码更好!谢谢
>html

对于 "application/x-www-form-urlencoded" 格式的 POST 参数获取,能够参考 ngx_lua 模块的
ngx.req.get_post_args() 函数以及 ngx_form_input 模块的实现:nginx

    http://wiki.nginx.org/HttpLuaModule#ngx.req.get_post_argsgit

    https://github.com/calio/form-input-nginx-modulegithub

而对于 "multipart/form-data" 格式的 POST 参数获取,能够参考 ngx_upload 模块以及 lua-resty-upload 库:app

http://www.grid.net.ru/nginx/upload.en.html函数

https://github.com/agentzh/lua-resty-uploadpost

Best regards,
-agentzhgoogle

相关文章
相关标签/搜索