Capturing IP address of web stream with StreamReader returning too much data
<p>I have this piece of code:</p>

<pre><code>WebClient web = new WebClient();
System.IO.Stream stream = web.OpenRead("http://url/getAddress.html");
string text = "";
using (System.IO.StreamReader reader = new System.IO.StreamReader(stream))
{
     text = reader.ReadToEnd();
     reader.Close();
}
</code></pre>

<p>The result of this in HTML is an IP Address, but when i try to save this result in a database, the result that returns is the whole html page of the web request.
What am i doing wrong?</p>

<p>Example:</p>

<p><strong>text</strong> has the result </p>

<p>if i do a <code>Response.Write(text);</code> it returns: <strong>111.222.33.3</strong></p>

<p>if i try to save the variable <strong>text</strong> which returns the value, this will save the whole html content from the web request page.</p>
