HttpWebRequest class can be used to post request and get response.
My only requirement is to hit URL of machine where I have deployed Tomcat Sever. Simple few lines of code can be used:
public void WebRequest(string url)
{
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
lblResults.Text = response.StatusDescription;
}
Url passed to this method is prepared in simple string variable.