private void StartProxyServer() { try { proxy = new BrowserMobProxy(); if (Config.Settings.httpProxy.startProxy) { proxy.KillOldProxy(); proxy.StartServer(); } } catch (Exception e) { throw new Exception("Error caught starting BMP Proxy Server : " + e.Message); } }
private void StartProxy() { try { if (Config.settings.httpProxy.startProxy) { proxy = new BrowserMobProxy(); proxy.StartServer(); proxy.CreateProxy(); proxy.CreateHar(); } } catch (Exception) { } }