I want to modify browser request headers to include custom headers with each of my requests. This can be done by using special browser extensions. But, can it be done without using any browser extensions ? Ideally, the approach should be browser agnostic & OS agnostic.
Use an HTTP proxy.
HTTP proxies can rewrite intercepted requests by adding, removing and modifying headers. Any Web browser can be configured to use any HTTP proxy.
- BrowserMob Proxy. Is a free programmable Java proxy that can be integrated with Selenium/Web Driver (in embedded mode) but also can be used as a standalone proxy for manual tests.