I get this warning on response.GetResponseStream() How should I handle this?
response.GetResponseStream()
// Get response using (var response = request.GetResponse() as Ht
var reader = new StreamReader(response.GetResponseStream());
I suspect StreamReader constructor's parameter has a notnull attribute. Try the following:
StreamReader
notnull
var stream = response.GetResponseStream(); if (stream == null) // throw an exception var reader = new StreamReader(stream);