专业的 curl 命令转换工具 - 轻松转换为各种编程语言代码

curl 命令转换工具

curl command

import requests

response = requests.get('http://example.com')

从浏览器获取 curl 命令

  1. 打开 Chrome 开发者工具的网络面板 (Windows按F12,Mac按Command+Option+I)
  2. 在需要转换的网络请求上点击右键
  3. 选择"复制" → "复制 cURL 命令" (Windows系统选择"复制 cURL (bash)")
  4. 将复制的命令粘贴到上方的输入框中,即可自动转换

支持从 Chrome、Firefox、Safari 等主流浏览器获取 curl 命令

安全提示:curl 命令可能包含 cookies 等敏感信息,分享时请注意删除相关数据。

curl from Safari

  1. Open the Network tab in the Developer Tools
  2. Right click (or Ctrl-click or two-finger click) a request
  3. Click "Copy as cURL" in the dropdown menu
  4. Paste it in the curl command box above

This also works in Chrome and Firefox.

Warning: the copied command may contain cookies or other sensitive data. Be careful if you're sharing the command with other people, sending someone your cookie for a website is like sending them your password.

curl from Firefox

  1. Open the Network Monitor tab in the Developer Tools
  2. Right click (or Ctrl-click) a request
  3. Click "Copy" → "Copy as cURL"
  4. Paste it in the curl command box above

This also works in Chrome and Safari.

Warning: the copied command may contain cookies or other sensitive data. Be careful if you're sharing the command with other people, sending someone your cookie for a website is like sending them your password.

主要功能

多语言支持

支持转换为 Python、JavaScript、PHP 等40多种主流编程语言

便捷转换

从浏览器直接获取 curl 命令,一键转换为目标代码

安全可靠

所有转换在本地进行,不会上传敏感数据