HTTP request draft

Draft HTTP request text from a URL, method and body with Host and UTF-8 byte length.

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

No. TextEncoder measures UTF-8 bytes. Header line endings use CRLF and the body string is appended as entered.

The example POST /api body {"item":"Pen"} is 14 UTF-8 bytes, so the draft includes Content-Length: 14.

This is an HTTP/1.1 text draft, not a transmission. Credentials, URL fragments and user-supplied host, length or transfer headers are rejected.

Frequently asked questions

Is a Korean body measured by character count?

No. TextEncoder measures UTF-8 bytes. Header line endings use CRLF and the body string is appended as entered.

Can Host or Content-Length be overridden manually?

This is an HTTP/1.1 text draft, not a transmission. Credentials, URL fragments and user-supplied host, length or transfer headers are rejected.

Calculation criteria and reference materials

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