感谢回复,已解决。
On Thursday, November 29, 2012 10:08:29 AM UTC+8, kindy wrote:
ngx.socket 需要自己写 请求头,
另,ngx.socket 不能直接发起 http 请求,需要 lua-resty-http 的支持。具体请求头的设置,请参考相关 lua-resty-http 文档。
2012/11/29 Bill Zhu
<bill...@gmail.com>
请问如何自定义 ngx.socket 和 ngx.location.capture 等子请求的User-Agent字符串?
--
- - - - - - - - - - - -
林青(Kindy Lin)