How do I request a resource (relative path) from the current server?
<p>If I have a relative path that I need to get from the current server. The following does not work because it is not a valid URI.</p>

<pre><code>var request = WebRequest.Create("\path_to_resource")
</code></pre>

<p>I believe that the easiest way would be to put the path in the web.config, however this is easily broken by forgetting to update the config when the application is moved to another server. Is there a better way than?</p>

<pre><code>var request = WebRequest.Create(ConfigurationManager.AppSettings["root"] + "\path_to_resource");
</code></pre>
