> On Sun, Aug 10, 2014 at 2:41 AM, Yichun Zhang (agentzh)
> <age...@gmail.com> wrote:
..
>> James Hurst 的 lua-resty-http 库的文档中的“Synopsis”一节里的代码示例确实不够完整,我刚给他提了一个
>> pull request,完善了一下那里的代码示例:
>>
>> https://github.com/pintsized/lua-resty-http/pull/18/files
>>
>> 加上了 resolver 配置指令和恰当的错误处理。
>
> 现在春哥一提醒,发现已经有当年期待的对应简化模块,
> 只是少了模块外的一行配置.
..
> 加上,一切KO...
> 本地测试就有了全新的汇报:
>
> $ curl -d "uri=https://docs.google.com/forms/d/1TBJNar54XKhMu_nRaES5ByPv0078hh0GV0sD5JPCZGU/viewform"
> 23.239.0.15:10080/=/gl
> request_method: POST
...
> {"error":{"errors":[{"domain":"global","reason":"sslRequired","message":"SSL
> is required to perform this operation."}],"code":403,"message":"SSL is
> required to perform this operation."}}
目测 当前 lua-resty-http 不支持 https
那么可行的方案就是先手工用 cosocket 接口,构造一个 https 的客户端,
这事儿,暂时超过俺的能力范畴,
大家是否有现成的实例?
--
人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
KM keep growing environment culture which promoting organization be learnning!
俺: http://zoomquiet.io
许: http://creativecommons.org/licenses/by-sa/2.5/cn/