From 50e1564600eaca3ff99ffd7a7f707f564da3af48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Srinivasan?= Date: Mon, 28 Oct 2024 12:28:36 -0700 Subject: [PATCH] Update the Forms section of README.md (#1593) The Forms section of README.md was missing what the data fields are serialized as. --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 65c7ebe4ed..4b866a043b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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