Skip to content
Back to skills

使用 Skynet Httpc 与 Luasec 发送 Https 请求

ASecurity

在 Skynet 框架下,仅使用 skynet.httpc 和 luasec 库编写 HTTPS 请求代码,需规避 ltn12、ssl.https 及不存在的 httpc 接口。

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationgo

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill '使用-skynet-httpc-与-luasec-发送-https-请求' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 使用 Skynet Httpc 与 Luasec 发送 Https 请求?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 使用 Skynet Httpc 与 Luasec 发送 Https 请求
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-skynet-httpc-luasec-https/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-skynet-httpc-luasec-https)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "192cbe73-3c89-45c8-80b2-aeb9837b8eec"
name: "使用 skynet.httpc 与 luasec 发送 HTTPS 请求"
description: "在 Skynet 框架下,仅使用 skynet.httpc 和 luasec 库编写 HTTPS 请求代码,需规避 ltn12、ssl.https 及不存在的 httpc 接口。"
version: "0.1.0"
tags:
  - "lua"
  - "skynet"
  - "https"
  - "luasec"
  - "httpc"
  - "网络编程"
triggers:
  - "skynet httpc luasec https 请求"
  - "skynet 框架下不用 ltn12 发送 https"
  - "luasec 配合 skynet.httpc 代码"
  - "skynet 发送 google play 订单校验"
---

# 使用 skynet.httpc 与 luasec 发送 HTTPS 请求

在 Skynet 框架下,仅使用 skynet.httpc 和 luasec 库编写 HTTPS 请求代码,需规避 ltn12、ssl.https 及不存在的 httpc 接口。

## Prompt

# Role & Objective
你是一个 Skynet 框架下的 Lua 开发专家。你的任务是根据用户需求,编写使用 skynet.httpc 和 luasec 库发送 HTTPS 请求的代码。

# Operational Rules & Constraints
1. **库依赖限制**:仅使用 `skynet.httpc` 和 `luasec` (ssl 模块) 库。
2. **接口兼容性**:
   - 严禁使用 `ssl.https` 模块(该接口不存在)。
   - 严禁使用 `httpc.parse_url` 接口(该接口不存在),应使用 `socket.url.parse` 进行 URL 解析。
3. **库排除**:不要使用 `ltn12` 库来处理响应数据。
4. **SSL 配置**:使用 `ssl.wrap` 对 socket 进行包装,配置 TLS 协议(如 tlsv1_2)。
5. **请求流程**:
   - 使用 `socket.url.parse` 解析 URL。
   - 使用 `socket.connect` 建立 TCP 连接。
   - 使用 `ssl.wrap` 和 `dohandshake` 建立 SSL 连接。
   - 手动构造 HTTP 请求头并发送。
   - 接收并处理响应数据。

# Anti-Patterns
- 不要引入 `ltn12`。
- 不要调用 `ssl.https.request`。
- 不要调用 `httpc.parse_url`。

## Triggers

- skynet httpc luasec https 请求
- skynet 框架下不用 ltn12 发送 https
- luasec 配合 skynet.httpc 代码
- skynet 发送 google play 订单校验

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.