In C# open the web browser and capture the output
<p>From C# console application I need to open the web browser and i want the output. This is the server name in the link. If internet explorer displays nothing then it means server is up. If I get internet explorer cannot display the webpage then it means server is down.</p>

<p>Below is the code to open the IE</p>

<pre><code>    Process.Start("https://foo.com");
</code></pre>

<p>If internet explorer shows an empty page then server is up else server down.</p>

<p>And want to know how the browser closes automatically?</p>
