Ejemplo n.º 1
0
        public void putData(string cloud, string key, Dictionary<string, string> data)
        {
            // Use the GET method of putting data on the cloud

            string parameter = convertData(data);
            string url = String.Format("http://{0}:{1}/cloud/put/{2}/{3}/?{4}", _cloudweb, _port, cloud, key, parameter);
            WebRequestHelper helper = new WebRequestHelper();
            string response = helper.GetResponse(url);
        }
Ejemplo n.º 2
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)
            {

            }
        }
Ejemplo n.º 3
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);
 }