【发布时间】:2014-12-09 20:01:30
【问题描述】:
如何转义这个 curl 命令字符串以供 LUA os.execute 使用?
curl -u mytokenkey: -X POST https://api.pushbullet.com/v2/pushes --header 'Content-Type: application/json' --data-binary '{"type": "note", "title": "Note Title", "body": "Note Body\nSecond Line\n http://goggle.com/ "}'
注意:我确实寻找了一个可以在这里使用的 LUA 库,但我发现的那些是用 c 代码编写的,而不是一个易于使用('需要')基于 LUA 的库......
【问题讨论】: