cURL命令生成器
可视化构建cURL命令。设置HTTP方法、URL、请求头、请求体和选项,然后复制生成的命令。
Request
请求头
选项
生成的cURL命令
curl "https://api.example.com/endpoint"
使用方法
可视化构建cURL命令。设置HTTP方法、URL、请求头、请求体和选项,然后复制生成的命令。
- 1Select your HTTP method (GET, POST, PUT, PATCH, DELETE, etc.).
- 2Enter the URL of the API endpoint you want to call.
- 3Add request headers by clicking 'Add Header' and entering key-value pairs.
- 4For POST/PUT/PATCH requests, enter your request body in JSON or raw format.
- 5Toggle options like follow redirects, verbose, or insecure as needed.
- 6Copy the generated cURL command from the output box.
主要功能
- Supports all HTTP methods: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
- Dynamic headers — add as many key-value pairs as you need
- JSON, raw, and form data body types for POST/PUT/PATCH
- Options for redirects (-L), verbose (-v), insecure (-k), and more
- Generated command formatted for terminal with proper line breaks