示例#1
0
        public void putLargeData(string cloud, string key, Dictionary<string, string> data)
        {
            // Use the GET method of putting data on the cloud

            // string realKey = key.Replace('/', '_');
            // string url = String.Format("http://{0}:{1}/cloud/put/{2}/{3}", _cloudweb, _port, cloud, realKey);
            string url = String.Format("http://{0}:{1}/emx/put", _cloudweb, _port);
            WebRequestHelper helper = new WebRequestHelper();
            try
            {
                string response = helper.PostResponse(url, data);
            }
            catch (Exception e)
            {

            }
        }
示例#2
0
 public void putMessage(string mailbox, string clientid, string from, Dictionary<string, string> data)
 {
     string url = String.Format("http://{0}:{1}/mbox/put/{2}/{3}/{4}", _cloudweb, _port, mailbox, clientid, from);
     WebRequestHelper helper = new WebRequestHelper();
     string response = helper.PostResponse(url, data);
 }