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;
}
}