Check for URL is working or not using
<pre><code>string url = "www.google.com";

public bool UrlIsValid(string url)
{
    bool br = false;
    try
    {
                    IPHostEntry ipHost =  Dns.GetHostEntry(url);
                                     br = true;
    }
    catch (SocketException)
    {
        br = false;
    }
    return br;
}
</code></pre>

<p>Above program will output true but when I change string to</p>

<pre><code>string url = "https://www.google.com";
</code></pre>

<p>I got output as <code>false</code>.</p>

<p>How can I get output for my second case?</p>
