title: HttpWebRequest not passing Credentials
body: <p>I'm trying to use <code>HTTPWebRequest</code> to access a REST service, and am having problems passing credentials in, see code below. I've read that <code>NetworkCredential</code> doesn't support SSL, and I'm hitting an HTTPS site.  Does anyone know of a class similar to <code>NetworkCredential</code> that does support SSL?</p>
  
  <pre><code>Uri requestUri = null;
  Uri.TryCreate("https://mywebserver/webpage", UriKind.Absolute, out requestUri);
  HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(requestUri);
  NetworkCredential nc = new NetworkCredential("user", "password");
  request.Credentials = nc;
  request.Method = WebRequestMethods.Http.Get;
  HttpWebResponse response = (HttpWebResponse)request.GetResponse();
  </code></pre>