Пример #1
0
        internal bool ReportBug(string msg, string email)
        {
            HttpSocket s = new HttpSocket();

            // send data
            string resp = s.Post(URL, string.Format("message={0}&email={1}&identifier={2}&hide=1", HttpUtility.UrlEncode(msg), HttpUtility.UrlEncode(email), IDENTIFIER));

            if (resp.Contains("Input successful."))
            {
                return(true);
            }
            return(false);
        }
Пример #2
0
        internal static void Submit()
        {
            StringBuilder sb = new StringBuilder();

            foreach (MappedMob mb in mMobs)
            {
                sb.AppendLine(mb.ToString());
            }

            // send data
            HttpSocket s = new HttpSocket();

            s.Post(SUBMIT_URL, string.Format("mobs={0}", HttpUtility.UrlEncode(sb.ToString())));

            mSubmitted.AddRange(mMobs);
            mMobs.Clear();
        }