首页 > 解决方案 > 试图将 https 字符串发送到 lua 中的网站

问题描述

我对 lua 有点陌生,我有需要调用的 API。

"https://status.abc.com/integrations/plus/?endpoint="..number.."&server="..server

这不是 json 格式。它只是将此 http 字符串发送到 Web 服务器。完成此任务的最简单方法是什么?

标签: lua

解决方案


local ok =os.execute([[curl --cert /etc/openvpn/cert.crt --key /etc/openvpn/key.key -X POST -H 'Content-Type: application/x-www-form- urlencoded' 'url here' --data 'data here']])


推荐阅读