First you have to decalre a string variable, like this:
string httpReturnValue = "";
To get the value and store it in the string you have to do this:
var request = (HttpWebRequest)WebRequest.Create("YOUR URL");
// For example
var postData = "thing1=hello";
postData += "&thing2=world";
var data = Encoding.ASCII.GetBytes(postData);
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = data.Length;
using (var stream = request.GetRequestStream())
{
stream.Write(data, 0, data.Length);
}
var response = (HttpWebResponse)request.GetResponse();
var httpReturnValue= new StreamReader(response.GetResponseStream()).ReadToEnd();
The code is from here: HTTP request with post.