public bool OnBeforeBrowse(IWebBrowser browser, IRequest request, NavigationType navigationType, bool isRedirect) { var message = string.Format("before browse - current: {0}, is loading: {1}, navigation type: {2}, is redirecting: {3}, request: {4} {5}", browser.Address, browser.IsLoading, navigationType, isRedirect, request.Method, request.Url); browser.OnConsoleMessage(message, "request handler", 0); browser.AddRequest(request); return(false); }