Hi Simon,
of course; you can either do it
* once manually: capture an Exchange in the Monitor, select it, and
edit the request headers in the bottom half of the main window. Left-
click and "Add" there to add new headers. When done, click "Resend" to
resubmit the modified request to the server.
* automated: using a Groovy script in the service proxy configuration,
for example as shown below. First add a proxy, then "Edit" it to put
the Groovy code into its configuration.
<?xml version = "1.0" ?>
<serviceProxy name="" port="2000">
<request>
<groovy>
def oldValue = exc.request.header.getFirstValue("User-Agent")
exc.request.header.setValue("User-Agent", oldValue.replace("F",
"G"))
exc.request.header.removeFields("Accept-Encoding")
exc.request.header.add("new-header", "foo")
</groovy>
</request>
<target host="
predic8.de" port="80" />
</serviceProxy>
Best, Tobias