Easiest Way to read the response from WebResponse
Posted
by
Stacker
on Stack Overflow
See other posts from Stack Overflow
or by Stacker
Published on 2010-12-26T11:39:21Z
Indexed on
2010/12/26
11:54 UTC
Read the original article
Hit count: 290
c#
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?
© Stack Overflow or respective owner