CURL 命令生成器
从 HTTP 请求生成 CURL 命令。轻松将浏览器请求轉換為 CURL 命令。
HTTP 请求
功能介紹
The CURL Command Generator tool converts HTTP request details into ready‑to‑run curl commands. It is perfect for debugging APIs, sharing reproducible examples, or documenting endpoints.
什麼時候用這個工具?
Use this tool whenever you need a curl command from request data: copying from browser devtools, API clients, or documentation snippets.
使用步驟
Enter request URL and method
Provide the HTTP method and the target URL of the API you want to call.
Add headers and body
Paste request headers and, if needed, a JSON or form body that should be included in the request.
Generate the curl command
Click generate to produce a curl command with the correct flags, headers, and data payload.
Run or share the command
Copy the generated command into your terminal or documentation to reproduce the request exactly.
使用範例
Debugging a failing POST request
Turn a complex request from your frontend into a curl command so you can experiment with it directly in the terminal.
