mirror of
https://github.com/httpie/cli.git
synced 2024-11-24 16:53:35 +01:00
Update the Forms section of README.md (#1593)
The Forms section of README.md was missing what the data fields are serialized as.
This commit is contained in:
parent
f4cf43ecdd
commit
50e1564600
@ -1044,7 +1044,7 @@ $ http POST pie.dev/post < files/data.json
|
|||||||
## Forms
|
## Forms
|
||||||
|
|
||||||
Submitting forms is very similar to sending [JSON](#json) requests.
|
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`.
|
Often the only difference is in adding the `--form, -f` option, which ensures that data fields are serialized as key-value tuples separated by '&', with a '=' between the key and the value. In addition `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.
|
It is possible to make form data the implicit content type instead of JSON via the [config](#config) file.
|
||||||
|
|
||||||
### Regular forms
|
### Regular forms
|
||||||
|
Loading…
Reference in New Issue
Block a user