From 3f9fd4ddde8fb103add84a1f65aa23a2484a5796 Mon Sep 17 00:00:00 2001 From: jgart Date: Sun, 30 Aug 2026 10:24:36 +0100 Subject: [PATCH] Document escapes in oneline string bodies. --- docs/request.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/request.md b/docs/request.md index 21ddc87b3c5..6f553218c34 100644 --- a/docs/request.md +++ b/docs/request.md @@ -673,6 +673,11 @@ POST https://example.org/helloworld `Hello world!` ~~~ +Oneline string bodies support escape sequences. For example, `\n` represents a newline, whereas +`\\n` represents a backslash followed by `n`. + +For precise byte control of a request body, use a [file body]. + #### Base64 body Base64 body is used to set binary data as the request body. @@ -729,6 +734,7 @@ File are relative to the input Hurl file, and cannot contain implicit parent dir [HTML form]: https://developer.mozilla.org/en-US/docs/Learn/Forms [multiline string body]: #multiline-string-body [oneline string body]: #oneline-string-body +[file body]: #file-body [body section]: #body [multipart/form-data on MDN]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST [`--file-root` option]: /docs/manual.md#file-root