title: JIRA Rest API Login using C#
body: <p>I've written below C# code to login to JIRA Rest API:</p>
  
  <pre><code>var url = new Uri("http://localhost:8090/rest/auth/latest/session?os_username=tempusername&amp;os_password=temppwd");
  var request = WebRequest.Create(url) as HttpWebRequest;
  if (null == request)
  {
   return "";
  }
  request.Method = "POST";
  request.ContentType = "application/json";
  request.ContentLength = 200;
  request.KeepAlive = false;
  using (var response = request.GetResponse() as HttpWebResponse)
  {
  }
  </code></pre>
  
  <p>When I execute this, application just goes on running without returning any response. Please suggest if this is the right way of calling JIRA Login using REST API </p>