Trying to set the referrer through CustomResourceInterceptor.
This code does not work:
request.AppendExtraHeader("Referer", "somereferrer.com");
The title is not sent.
This code works:
request.Referrer = "somereferrer.com";
Header sent. BUT the referrer receives only the server and can be seen in the server variable $_SERVER['HTTP_REFERER']. From javascript referrer does not get into the variable document.referrerempty. Accordingly, counters calculate both direct transitions.
To do this by raising an event webView.DocumentReady:
webView.ExecuteJavascript("delete window.document.referrer;window.document.__defineGetter__('referrer', function () { return 'somereferrer.com';});");
But this is the wrong way. This crutch does not always work. There must be a way to distribute it correctly.
How to transfer the referrer and the client side? How can it be implemented correctly?