From 47fdbfb923c9ce0c9cfb456d6aab235cde404d4c Mon Sep 17 00:00:00 2001 From: Muzami- Ashiq Date: Sun, 7 Sep 2025 14:06:26 +0530 Subject: [PATCH] Clarify response comparison in Quickstart documentation (fixes #6949) --- docs/user/quickstart.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst index 3755d26239..d0f920253e 100644 --- a/docs/user/quickstart.rst +++ b/docs/user/quickstart.rst @@ -271,7 +271,13 @@ use the same key:: }, ... } + + # Note: httpbin.org adds a changing header ("X-Amzn-Trace-Id") to each response, + # so r1.text == r2.text may be False even if the form data matches. + # Instead, compare the form data in the JSON response: >>> r1.text == r2.text + False + >>> r1.json()['form'] == r2.json()['form'] True There are times that you may want to send data that is not form-encoded. If