This blog post will show you how you can create a simple web test plugin which can be used to easily modify properties of each request in a web test: http://blogs.msdn.com/slumley/pages/setting-request-properties-with-a-web-test-plug-in.aspx