Easiest Way to read the response from WebResponse
- by Stacker
private void RespCallback(IAsyncResult asynchronousResult)
{
try
{
WebRequest myWebRequest1 = (WebRequest)asynchronousResult.AsyncState;
// End the Asynchronous response.
WebResponse webResponse = myWebRequest1.EndGetResponse(asynchronousResult);
}
catch (Exception)
{
//TODO:Log the error
}
}
now having the webResponse Object ,what is the easiest way to read its contents?