You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl -X POST -d "$msgpack" http://localhost:9880/app.log
52
52
```
53
53
54
-
Some `Content-Type` other than `application/x-www-form-urlencoded` support specific formats.
55
-
In that case, the format type specification as `json=`in the data is not necessary.
54
+
Some Media Types other than `application/x-www-form-urlencoded` support specific formats.
55
+
If those Media Types are specified with `Content-Type: `, the prefix such as `json=` is not necessary for posting data.
56
56
57
57
Example: Post JSON data with `Content-Type: application/json`:
58
58
@@ -267,12 +267,12 @@ If you use the default `<parse>` setting, the data format depends on the `Conten
267
267
268
268
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.
269
269
270
-
On the other hand, some `Content-Type` other than `application/x-www-form-urlencoded` support specific formats.
271
-
In that case, the prefix such as `json=`in the data is not necessary.
270
+
On the other hand, some Media Types other than `application/x-www-form-urlencoded` support specific formats.
271
+
If those Media Types are specified with `Content-Type: `, the prefix such as `json=` is not necessary for posting data.
0 commit comments