pass local path to HttpWebRequest
<p>I need to pass local path to HttpWebRequest in c#. i have test.xml in my c drive and i need get that xml file in <code>HttpWebRequest</code>. but it throws exception in </p>

<pre><code>HttpWebRequest rqst = (HttpWebRequest)HttpWebRequest.Create(Uri.EscapeUriString(urlServ))
</code></pre>

<p>line "Invalid URI: The Authority/Host could not be parsed."</p>

<p>my coding-></p>

<pre><code>string urlServ = "file:\\c:\\test.xml";
  try
   {             
      HttpWebRequest rqst = (HttpWebRequest)HttpWebRequest.Create(Uri.EscapeUriString(urlServ));
      rqst.KeepAlive = false;
   }
catch{}
</code></pre>
