cURL Converter
Convert cURL commands to Python, JavaScript, Go, PHP, and Ruby
POSThttps://api.example.com/data2 header(s)Has body
const response = await fetch('https://api.example.com/data', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer token123',
},
body: "{\"name\": \"test\", \"value\": 42}",
});
const data = await response.json();