Add configuration option for request headers
Probably with
page .setExtraHTTPHeaders
.