title: Get current request's credentials for using in WebRequest
body: <p>When accessing my site, the user has to enter his credentials. They are basically plain directory access credentials.
  At a certain point I check if a certain file they want to download exists by calling</p>
  
  <pre><code>WebRequest req = HttpWebRequest.Create(checkUri.AbsoluteUri);
  WebResponse res = req.GetResponse();
  </code></pre>
  
  <p>Although I can access the checkUri from the browser, I get a 401 when doing the above check. I think I have to set the</p>
  
  <pre><code>req.Credentials
  </code></pre>
  
  <p>But I don't know where the current credentials are stored...</p>
  
  <p>Any ideas?</p>
  
  <p><strong>--Update--</strong>  </p>
  
  <ul>
  <li>Integrated Windows Authentication: No</li>
  <li>Allow Anonymous: Off</li>
  <li>Caler: Link on page of same site (GET)</li>
  <li>Impersonation: default is off (don't even know how to enable it in asp.net mvc)</li>
  </ul>