curl 转代码

curl 命令
Python 代码
import requests

headers = {
    'Accept': 'application/json',
    'Authorization': 'Bearer token123',
    'Content-Type': 'application/json',
}

json_data = {
    'name': 'John',
    'email': 'john@example.com',
}

response = requests.post('https://api.example.com/v1/users', headers=headers, json=json_data)

# Note: json_data will not be serialized by requests
# exactly as it was in the original request.
#data = '{"name":"John","email":"john@example.com"}'
#response = requests.post('https://api.example.com/v1/users', headers=headers, data=data)
language

多语言支持

支持 Python、Node.js、Go、PHP、Java

auto_fix_high

自动转换

粘贴 curl 命令自动生成目标语言代码

palette

语法高亮

代码输出自带语法高亮显示

QQ交流群

QQ交流群