2

I am using System.Windows.Forms.WebBrowser webBrowser1 in c#. Want to add a request header to every request made from this browser.

Manish
  • 1,452
  • 15
  • 25

1 Answers1

5

You can use this,

webBrowser.Navigate("http://stackoverflow.com", null, null, "Custom Header");

  • 1
    Thanks for answering. I tried this but web page I am embedding inside browser opens lot of javascript connection just like gmail or fb. I want to add header parameter to all those requests too. Navigate() is sending custom header to only initial request. – Manish May 27 '13 at 13:46