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