发送 HTTP 请求到指定 URL,支持 GET/POST 方法和自定义 headers。
--url
--method
--data
python scripts/http-client.py --url "https://api.example.com/data" --method GET
返回 JSON 格式的响应内容。
共 3 个版本