title: Create http url string
body: <p>I need a function which will return correct url from url parts (like in browsers) </p>
  
  <pre><code>string GetUrl(string actual,string path) {
    return newurl;
  }
  </code></pre>
  
  <p>For example:</p>
  
  <pre><code>GetUrl('http://example.com/a/b/c/a.php','z/x/c/i.php') -&gt; http://example.com/a/b/c/z/x/c/i.php
  
  GetUrl('http://example.com/a/b/c/a.php','/z/x/c/i.php') -&gt; http://example.com/z/x/c/i.php
  
  GetUrl('http://example.com/a/b/c/a.php','i.php') -&gt; http://example.com/a/b/c/i.php
  
  GetUrl('http://example.com/a/b/c/a.php','/o/d.php?b=1') -&gt; http//example.com/o/d.php?b=1
  
  GetUrl('http://example.com/a/a.php','./o/d.php?b=1') -&gt; http//example.com/a/o/d.php?b=1
  </code></pre>
  
  <p>Anu suggestions?</p>