Skip to content

Commit

Permalink
Update the Forms section of README.md (#1593)
Browse files Browse the repository at this point in the history
The Forms section of README.md was missing what the data fields are serialized as.
  • Loading branch information
andresrinivasan authored Oct 28, 2024
1 parent f4cf43e commit 50e1564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ $ http POST pie.dev/post < files/data.json
## 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`.
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.
### Regular forms
Expand Down

0 comments on commit 50e1564

Please sign in to comment.