Skip to content
HALOWERK

Formatwerk

curl to code

Own POSIX shell word splitter (single, double and $'.' quotes, backslash escapes, line continuations; pipes, redirects and command substitution are refused) and an own curl option parser for -X, -H, -d/--data(-raw/-binary/-ascii/-urlencode), --json, -F/--form(-string), -G, -I, -u, -A, -e, -b, -L, -k, -m, --connect-timeout, -x, -T, --oauth2-bearer and combined short flags. Semantics follow curl: -d implies POST and application/x-www-form-urlencoded, several -d are joined with &, -G moves.

POST https://format.halowerk.com/v1/curl-to-code

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
commandstringYesOne curl command line (bash syntax).
targetsarrayNoLanguages to generate.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "command"
  ],
  "properties": {
    "command": {
      "type": "string",
      "minLength": 4,
      "maxLength": 20000,
      "description": "One curl command line (bash syntax)."
    },
    "targets": {
      "type": "array",
      "minItems": 1,
      "maxItems": 3,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "python",
          "javascript",
          "go"
        ]
      },
      "default": [
        "python",
        "javascript",
        "go"
      ],
      "description": "Languages to generate."
    }
  }
}

Open original schema

Published input example

{
  "command": "curl -X POST https://halowerk.com/ -H 'Content-Type: application/json' -d '{\"a\":1}'"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’