示例#1
0
 private void StartProxy()
 {
     try
     {
         if (Config.Settings.httpProxy.startProxy)
         {
             proxy = new BrowserMobProxy();
             proxy.StartServer();
             proxy.CreateProxy();
             proxy.CreateHar();
         }
     }
     catch (Exception)
     {
     }
 }
示例#2
0
 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);
     }
 }