Scalien.CounterThreadState.GetTableCountHTTP C# (CSharp) Method

GetTableCountHTTP() public static method

public static GetTableCountHTTP ( string url ) : System.Int64
url string
return System.Int64
        public static Int64 GetTableCountHTTP(string url)
        {
            var result = Utils.HTTP.GET(url, COUNT_TIMEOUT);
            try
            {
                if (result.StartsWith("NEXT"))
                {
                    string[] nextResult = result.Split(new char[] { ' ' });
                    if (nextResult.Length != 4)
                        return -1;
                    return Convert.ToInt64(nextResult[3].Trim());
                }
                else
                    return Convert.ToInt64(result);
            }
            catch (Exception)
            {
                return -1;
            }
        }