I'm trying to forward http request packets and changing their headers on the fly. I fetched the content of a specific field, but I'm unable to change it because httpHeader is read only. I couldn't find any help about how to reconstruct httpLayer using httpRequestLayer
I want to modify "Accept-Encoding" field of httpHeader and then forward it.
How can I change or as an alternative solution create a new http request packet using the former packet ?
What do you suggest instead of this part of code?