WebClient webclient =
new WebClient();
NameValueCollection postValues =
new NameValueCollection();
postValues.Add("pushId", System.DateTime.Now.ToString("yyyyMMddHHmmss"));
postValues.Add("data", value);
Uri url =
new Uri("http://xxx/APNS_Project/push.do");
byte[] responseArray = webclient.UploadValues(url, postValues);
string returnValue = Encoding.ASCII.GetString(responseArray);
return returnValue;
httpURL = new Uri(DeptUrl + "&groups=B");
httpReq = (HttpWebRequest)WebRequest.Create(httpURL);
httpResp = (HttpWebResponse)httpReq.GetResponse();
respStream = httpResp.GetResponseStream();
readerOfStream = new StreamReader(respStream, System.Text.Encoding.UTF8);
deptString = readerOfStream.ReadToEnd();
readerOfStream.Close();
respStream.Close();