tools/data/curl converter
// datanew

curl converter

convert curl to fetch, axios, python requests

— paste a curl command // client-only
// converted output appears here
curl -sX POST 'https://api.whittly.dev/v1/curl/convert' \
  -H 'Authorization: Bearer $WHITTLY_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"curl":"curl -X POST https://api.example.com -H 'Content-Type: application/json' -d '{}'","target":"fetch"}'
const res = await fetch('https://api.whittly.dev/v1/curl/convert', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + apiKey,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ curl: "curl -X POST ...", target: "fetch" }),
});
const data = await res.json();
const { data } = await axios.post(
  'https://api.whittly.dev/v1/curl/convert',
  { curl: "curl -X POST ...", target: "fetch" },
  { headers: { Authorization: 'Bearer ' + apiKey } }
);
// probulk conversionpro·HAR importproupgrade →
// history
Pro Cloud Sync — upgrade
no operations yet