开发者工具

cURL 转代码

将 cURL 命令转换为 JavaScript fetch、Python requests、Go、PHP 或 Axios

cURL Command

Supports -X, -H, -d / --data. Runs in your browser.

Paste a cURL command above and click Convert

cURL to Code — Convert cURL to Any Language

Convert a cURL command to JavaScript fetch, Python requests, Go, PHP, or Axios with a single click. Paste your cURL, pick your target language, and get production-ready code.

Supported languages

JavaScript fetch()

Native browser and Node.js HTTP client. No dependencies.

Python requests

The most popular Python HTTP library. pip install requests.

Axios

Promise-based HTTP client for Node.js and the browser.

Go net/http

Standard library HTTP client for Go — no imports needed.

PHP cURL

PHP's built-in cURL extension for server-side HTTP requests.

没找到需要的?

我们根据社区反馈开发免费工具。欢迎提出能改善您工作流的工具建议!

cURL 转代码 — 免费工具在线 | FreeTool24 | FreeTool24