You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2026-04-24 19:53:55 +02:00
Proper JSON handling for :=/:=@ (#1213)
* Proper JSON handling for :=/:=@ * document the behavior * fixup docs
This commit is contained in:
@@ -710,6 +710,10 @@ Host: pie.dev
|
||||
|
||||
Furthermore, the structure syntax only allows you to send an object as the JSON document, but not an array, etc.
|
||||
Here, again, the solution is to use [redirected input](#redirected-input).
|
||||
|
||||
## Forms
|
||||
|
||||
Submitting forms is very similar to sending [JSON](#json) requests.
|
||||
Often the only difference is in adding the `--form, -f` option, which ensures that data fields are serialized as, and `Content-Type` is set to `application/x-www-form-urlencoded; charset=utf-8`.
|
||||
It is possible to make form data the implicit content type instead of JSON via the [config](#config) file.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user