I'm getting a little frustrated with this problem. How do I change the http header "Referer" prior to a browser redirect?

Alessandro A. Garbagnati

I'm afraid you cannot change the Referer header, because the content of that header is fully controlled by the browser. I think that no matter what the actual context of that header is, the browser will override it.
reading some documents at the W3Consortium it looks like that there are probably security reason for that. With the referer header, for example, you can in some way 'restrict' access to a page only if the user is coming from a specific page, disallowing, in fact, bookmarking that page.