Reading Response From URL using HTTP WEB REQUEST
<p>I have to read response from <a href="http://www.subway.com/storelocator/default.aspx?zip=04416&amp;country=USA" rel="nofollow">http://www.subway.com/storelocator/default.aspx?zip=04416&amp;country=USA</a> .I have used following code but does not get all the response. instead of it gives response of error page Thanks in advance.</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{

    string sUrl = "http://www.subway.com/storelocator/default.aspx?zip=04416&amp;country=USA";
    XmlDocument rssDoc = new XmlDocument();
    XmlTextReader rssReader = new XmlTextReader(sUrl.ToString());

    WebRequest wrGETURL;
    wrGETURL = WebRequest.Create(sUrl);

    Stream objStream;
    objStream = wrGETURL.GetResponse().GetResponseStream();
    StreamReader objReader = new StreamReader(objStream, Encoding.UTF8);
    WebResponse wr = wrGETURL.GetResponse();
    Stream receiveStream = wr.GetResponseStream();
    StreamReader reader = new StreamReader(receiveStream, Encoding.UTF8);
    string content = reader.ReadToEnd();
    Response.Write(content);
   }
</code></pre>
