in reply to Packet editing
Surely there already exists an intercepting proxy server you can use.
Note that working with a packet at a time won't work since you'll need to adjust the Content-Length header.