curl request inspector

Inspect method, URL, headers and body from a bounded curl command without executing it.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

Using -d implies POST even with an empty body; otherwise GET is used. An explicit -X supplies the method.

The example separates into POST, https://example.com/api, a Content-Type header and the body {"a":1}. No request is sent.

Only -X, -H, -d and their long aliases are supported. Shell substitution, redirects, file bodies and unknown options are rejected; no server is contacted.

Frequently asked questions

Which method is used with -d but without -X?

Using -d implies POST even with an empty body; otherwise GET is used. An explicit -X supplies the method.

Are shell substitutions or upload options executed?

Only -X, -H, -d and their long aliases are supported. Shell substitution, redirects, file bodies and unknown options are rejected; no server is contacted.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors