public String ResetBrowserCounters(out BrowserCounters BrowserCounters)
        {
            BrowserCounters = new BrowserCounters();

            try
            {
                GetData(@"/reset");
                BrowserCounters = GetData(@"/reset");
            }
            catch (Exception ex)
            {
                return(ex.Message);
            }
            return("OK");
        }
        public String SetUrlfilter(String filter)
        {
            BrowserCounters browserCounters = new BrowserCounters();

            try
            {
                browserCounters = GetData(@"/domainlist=" + filter);
                browserCounters = GetData(@"/domainlist=" + filter);
                if (browserCounters.DomainList.Equals(filter))
                {
                    return("OK");
                }
            }
            catch (Exception ex)
            {
                return(ex.Message);
            }
            return("FAIL");
        }
        public BrowserCounters GetData(String url)
        {
            BrowserCounters browserCounters = new BrowserCounters();

            lock (oLock)
            {
                for (int i = 0; i < 10; i++)
                {
                    try
                    {
                        String json = GET(FirefoxUrl + url);

                        if (json.Contains("{"))
                        {
                            browserCounters = new System.Web.Script.Serialization.JavaScriptSerializer().Deserialize <BrowserCounters>(json);
                            return(browserCounters);
                        }
                    }
                    catch (Exception) { }
                    Thread.Sleep(200);
                }
            }
            return(browserCounters);
        }