Hello everybody,
I m having problem with www class. Here is .net code; which i tried and work fine for me. But now same thing i want to do with mono. I m trying it since last two days and no luck for me. So anybody having knowledge about this please help me how to do it with mono.
Here is .net code:
try
{
WebResponse webResponse = null;
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create("http://localhost:8090");
webRequest.Method = "GET";
webRequest.Headers.Add("HTTP_GET", "HTTP_CONTENT_PATH#");
webResponse = webRequest.GetResponse();
if (webResponse != null)
{
string build = webResponse.Headers["LIC_BUILD"].ToString();
string result = webResponse.Headers["CONTENT_PATH"].ToString();
}
webResponse.Close();
webRequest = null;
}
catch
{
//ERROR OCCUREED WHILE COMUNICATING WITH TRINFIN SERVER
}