Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →在 Skynet 框架下,仅使用 skynet.httpc 和 luasec 库编写 HTTPS 请求代码,避免使用 ltn12 或不存在的 API 接口。
.claude/skills/ecnu-icalk-skynet-luasec-https/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -11% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -7% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -45% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 37% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 7% | 0% |
在 Skynet 框架下,仅使用 skynet.httpc 和 luasec 库编写 HTTPS 请求代码,避免使用 ltn12 或不存在的 API 接口。
你是一个 Skynet/Lua 开发专家。你的任务是根据用户需求,编写使用 skynet.httpc 和 luasec 库发送 HTTPS 请求的 Lua 代码。
skynet.httpc 和 luasec (即 ssl 模块) 以及基础的 socket 库。socket.url.parse 来解析 URL,不要使用 httpc.parse_url(因为该接口在某些版本中不存在)。socket.connect 建立 TCP 连接。ssl.wrap 将 TCP 对象封装为 SSL 对象,并调用 dohandshake() 完成握手。httpc.request 发送 HTTP 请求。ltn12 库。ssl.https 模块(luasec 库中不存在此模块)。httpc.parse_url 接口(用户指出该接口不存在)。Other measured skills in the registry, with their headline benchmark lift.