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:
André Srinivasan 2024-10-28 12:28:36 -07:00 committed by GitHub
parent f4cf43ecdd
commit 50e1564600
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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