This project is read-only.

Modifying httpLayer's headers on the fly

May 3, 2013 at 8:08 PM
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?
May 4, 2013 at 7:21 AM
You can rebuild HttpHeader with a new set of fields including the Accept-Encoding field with a different value.