From c362a35401922fffc438265c15cc81231915a0e2 Mon Sep 17 00:00:00 2001 From: Daijiro Fukuda Date: Fri, 7 Jun 2024 16:02:14 +0900 Subject: [PATCH] Improve expressions Signed-off-by: Daijiro Fukuda Co-authored-by: Kentaro Hayashi --- input/http.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/input/http.md b/input/http.md index 2c3f6523..6a497a07 100644 --- a/input/http.md +++ b/input/http.md @@ -51,8 +51,8 @@ msgpack=`echo -e "msgpack=\x81\xa3foo\xa3bar"` curl -X POST -d "$msgpack" http://localhost:9880/app.log ``` -Some `Content-Type` other than `application/x-www-form-urlencoded` support specific formats. -In that case, the format type specification as `json=` in the data is not necessary. +Some Media Types other than `application/x-www-form-urlencoded` support specific formats. +If those Media Types are specified with `Content-Type: `, the prefix such as `json=` is not necessary for posting data. Example: Post JSON data with `Content-Type: application/json`: @@ -267,12 +267,12 @@ If you use the default `` setting, the data format depends on the `Conten By default `curl` uses `-H "Content-Type: application/x-www-form-urlencoded"`, which allows the use of the prefix `json=`, `ndjson=`, and `msgpack=` as seen on the previous examples. -On the other hand, some `Content-Type` other than `application/x-www-form-urlencoded` support specific formats. -In that case, the prefix such as `json=` in the data is not necessary. +On the other hand, some Media Types other than `application/x-www-form-urlencoded` support specific formats. +If those Media Types are specified with `Content-Type: `, the prefix such as `json=` is not necessary for posting data. -Here is the list of supported `Content-Type`: +Here is the list of supported Media Types: -| `Content-Type` | data format | version | +| Media Types | data format | version | | :--- | :--- | :--- | | `application/json` | JSON | - | | `application/csp-report` | JSON | 1.17.0 |