cURL → Fetch/Axios
HTTP-requests converteren vanuit cURL
cURL
Fetch
await fetch("https://api.example.com/v1/items", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer TOKEN",
},
body: "{name:Test}",
});Axios
await axios({
url: "https://api.example.com/v1/items",
method: "post",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer TOKEN",
},
data: "{name:Test}",
});Over cURL → Fetch/Axios
cURL → Fetch/Axios — HTTP-requests converteren vanuit cURL. IT Tools: Hulpprogramma's voor ontwikkelaars. Gebruik onze tools zonder registratie of software-installatie. Alle berekeningen gebeuren in uw browser — uw gegevens worden nooit naar een server gestuurd.