C# Check url exist?
<p>How can I check whether a page exists at a given URL?</p>

<p>I have this code:</p>

<pre><code>private void check(string path)
    {

        try
        {
            Uri uri = new Uri(path);
            WebRequest request = WebRequest.Create(uri);
            request.Timeout = 3000;
            WebResponse response;
            response = request.GetResponse();

        }
        catch(Exception loi) { MessageBox.Show(loi.Message); }

    }
</code></pre>

<p>But that gives an error message about the proxy. :(</p>
