Store received information and HTTP headers in a JSON sidecar.
Trim initial space from header values properly; store header values as arrays to ensure repeating headers can be dealt with.