explicador de comando curl
Cole um comando curl e receba a explicação sinalizador por sinalizador, e depois a tradução para fetch, requisição HTTP crua, HTTPie e Python. Nada é enviado e nenhuma requisição é executada.
Web e HTTPAnalisado localmente no seu navegador. Um comando curl pode conter tokens, cookies ou senhas, então nada do que você cola é enviado a lugar algum nem executado.
The command is tokenized and decoded entirely in your browser, the way a shell reads it: single and double quotes, backslash escapes, line continuations, clustered short flags (-sSL), and attached values (-XPOST). From the parsed request the tool derives both the explanation and every translation. It never sends the request or contacts the host (zero egress). Content-Type is resolved the way curl actually behaves, where -d defaults to application/x-www-form-urlencoded rather than JSON, which is a common source of confusion the tool flags.
- curl: man pageThe command options and their exact behavior
- RFC 9110: HTTP SemanticsMethods, headers, and message semantics
- MDN: Using the Fetch APIThe fetch translation target
- Requests: QuickstartThe Python translation target