跳到正文
TakoAPI
返回技能列表

curl-http

由 arnarsson 提供

CLI Utilities
4.1k下载量由 clawskills.sh 提供
5星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Essential curl commands for HTTP requests, API testing, and file.

描述

该技能的功能

curl is a command-line tool for making HTTP requests and transferring files. It supports all standard HTTP methods, authentication schemes, cookies, proxies, and SSL/TLS. Useful for API testing, scripting, and file operations.

curl is pre-installed on most Unix-like systems and needs no GUI, so it is the fastest way to test an HTTP endpoint without any additional tooling.

何时使用

  • Testing a REST API endpoint before writing client code
  • Downloading files or archives from a remote URL
  • Debugging HTTP response headers and status codes
  • Sending authenticated requests with tokens or API keys in shell scripts
  • Uploading files to an FTP server or HTTP endpoint

示例工作流

输入

User asks: POST login credentials to an API and extract the returned auth token

智能体
  1. 1

    Send POST request with JSON body using -X POST and -d flags

  2. 2

    Set Content-Type header to application/json with -H

  3. 3

    Add -s flag to suppress progress output

  4. 4

    Pipe the response to jq with -r '.token' to extract the token value

输出

Auth token string printed to stdout, ready for use in subsequent requests

安装

clawhub install arnarsson/curl-http

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接