C# getResponseStream()

Posted by user577906 on Stack Overflow See other posts from Stack Overflow or by user577906
Published on 2011-01-16T23:48:13Z Indexed on 2011/01/16 23:53 UTC
Read the original article Hit count: 108

Filed under:
|

This is my code for downloading html to parse:

HttpWebResponse response = (HttpWebResponse)req.GetResponse();
            var obj = response.GetResponseStream();
            StreamReader reader = new StreamReader(obj);
            tmp = reader.ReadToEnd();

(tmp is a string) and when writing it to a text file to look through, I'm noticing that responseStream is stripping out the very text that I'm actually looking to parse. Is there any other way to download raw HTML for future parsing or am I simply out of luck?

© Stack Overflow or respective owner

Related posts about c#

Related posts about html