Read the string that is signed
Trace how the app selects fields, changes their names or values, joins them and passes the result to its signer. Record separators, whitespace, duplicate values and the order in that input.
Selecting headers by name still requires an ordering rule when the values become a byte string. AWS SigV4, for example, lowercases and sorts canonical header names and normalizes values. That is a documented example, not a rule to impose on every app. See the AWS canonical-request guide.
Separate HTTP semantics from signing
HTTP field names are case-insensitive. The relative order of fields with different names does not define their meaning. Repeated values have their own combination and ordering rules; Set-Cookie is a notable exception to comma joining. RFC 9110 describes these rules.
A custom signature covers the bytes its implementation selects. Compare that input with what your client signs, rather than assuming the captured wire layout is the canonical form. An HTTP library or intermediary can change representation along the path.
Control the comparison
Use a fixed input and known session state to compare the app's signing input, signature and final request. Test changed field names, values and ordering separately where the workflow permits a controlled test.
A changed response is a clue to investigate. Freshness, authentication, application validation and transport behavior can produce the same visible failure. Repeat the comparison with known inputs and inspect the signer before assigning a cause.
Build the client around the confirmed rule
Keep canonicalization in one tested function. Store public or redacted test vectors for selected fields, duplicates, whitespace and body bytes. Check both the canonical bytes and the signature so a serializer change is easy to locate.
Inspect the prepared request to confirm the fields the HTTP client actually sends. Retain headers that the workflow needs even when they are not signed. Removing a header because it is absent from the signature can break ordinary content negotiation or authentication.
Dynamic-header client reconstruction delivers the computed values and session handling. The replay guide covers timestamps and other changing inputs.
Reviewed 19 October 2026 · SReverse research desk