cURL to Code
Convert a cURL command to JavaScript, Python, Go or PHP.
● runs in your browsertarget language
fetch('https://api.example.com/users', {
method: 'POST',
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer token123"
},
body: "{\"name\":\"utly\",\"active\":true}"
})
.then(r => r.json())
.then(console.log);