webmetrics/browsermob-proxy — pull request #17 by davbo (2011-10-24 16:35:13+00:00)
Title: Custom request headers

Hey chaps,

I've added an API endpoint to /port/headers which accepts a bunch of params and places those params into the request headers (overriding any with the same names). I know in the docs you say about posting javascript to manipulate the requests but I wasn't sure how to make a start with that (embedding Rhino perhaps?)

Anyways, I had an itch to set some custom HTTP Request headers, this is me attempting to scratch it :-)

ps. Strictly speaking I'm not a Java dev so the code might be a little sketchy.