title: Custom USER-AGENT in UWP WebView
body: <p>I'm working on a UWP app and have a page with a WebView. In the WebView I need to set the user-agent to a custom value.</p>
  <p>I have tried the following:</p>
  <pre><code>var requestMessage = new HttpRequestMessage(HttpMethod.Get, baseUri);
  requestMessage.Headers.Add(&quot;User-Agent&quot;, &quot;MyCustomValue&quot;);
  webview.NavigateWithHttpRequestMessage(requestMessage);
  </code></pre>
  <p>However the WebView doesn't use my custom user-agent but instead use the original default value of the user-agent. This is confirmed by <a href="https://social.msdn.microsoft.com/Forums/windowsapps/en-US/14a92c57-7cee-4b0b-9c4e-55b1e235ddef/uwpchange-useragent-of-uwp-webview?forum=wpdevelop" rel="nofollow noreferrer">this thread</a> at MSDN.</p>
  <p>Any good input to alternative solutions or workarounds is appreciated.</p>