POST:
WebRequest request = WebRequest.Create("post url");
String postdata;
Byte[] bytedata;
postdata="key=xxx&value=yyyy";
bytedata = Encoding.UTF8.GetBytes(postdata);
request.ContentLength = bytedata.Length;
request.ContentType = "application/x-www-form-urlencoded";
request.Method = "POST";
Stream dataStream = request.GetRequestStream();
dataStream.Write(bytedata, 0, bytedata.Length);
dataStream.Close();
GET RESPONSE:
WebResponse response = request.GetResponse();
dataStream = response.GetResponseStream();
StreamReader reader =new StreamReader (dataStream);
String responseFromServer = reader.ReadToEnd();
REQUEST POST DATA:
NameValueCollection nvc = Request.Form
String key;
String value;
key = nvc("key");
value=nvc("value");
Do let me know if anything wrong.