On the client side, run:
fossil push http://bogus/ --httptrace
Or a similar command to provide the output. The content of the message will appear on standard output. Capture this message into a file named (for example) out.txt. Then run the server in gdb:
gdb fossil r test-xfer out.txt