Wireshark is a network sniffer which can show and save HTTP transactions. Because it works on packet level rather than on HTTP level, the client does not need to be configured in order to capture the request.
- Start Wireshark. You may have to start it as root so that you have enough permissions to sniff some packets.
If the computer on which you are sniffing is the same computer that initiates the HTTP transaction, disable promiscuous mode on the interface. This means that it does not listen to all packets, but just the packets meant for this network interface.
- You may want to enter a filter like tcp.port == 80 in the filter bar.
- Do your request.
- Find a packet with the request in it. It will usually start with GET or POST.
- Right click and select "Follow TCP stream".
- A window appears with the HTTP conversation. You can save it using the Save As button.