responsestream

Lengthy lines of code vs readability

This is perfectly fine C# code and works fine provided correct URL. But the everything is just done at one line by reducing the readability of the code. Here is the code : return new StreamReader(WebRequest.Create(urlName).GetResponse().GetResponseStream()).ReadToEnd(); I am just wondering what are the opinions of fellow de...

ResponseStream re-read after read timeout

I am wondering when I read a response stream and a timeout occurs, can I retry the read? Or do I have to make a new request? The server that I am downloading from does not support resuming, so I need to protect against timeouts. ...