cURL → Fetch/Axios
Convertir des requêtes HTTP depuis 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}",
});À propos de cURL → Fetch/Axios
cURL → Fetch/Axios — Convertir des requêtes HTTP depuis cURL. Outils IT: Utilitaires pour développeurs. Utilisez nos outils sans inscription ni installation de logiciel. Tous les calculs se font dans votre navigateur — vos données ne sont jamais envoyées à un serveur.