title: RestSharp 401 Error, 200 on Other Clients
body: <p>I am trying to connect to a local nxwitness (Restful) server with restsharp using basic authentication. I am receiving a 401 error. </p>
  
  <p>I receive a 200 on Boomerang in chrome, however in Postman I also receive a 401 error.</p>
  
  <p>Here is my restsharp code.</p>
  
  <pre><code>        var client = new RestClient("http://192.168.42.42:7001")
          {
             Authenticator = new HttpBasicAuthenticator("username","password");
          };
  
          var request = new RestRequest("/ec2/getMediaServers/", Method.GET);
          //var request = new RestRequest("ec2/getMediaServers/", Method.GET); //also tried
          //var request = new RestRequest("ec2/getMediaServers", Method.GET);
  
          IRestResponse response = client.Execute(request); //401
          var content = response.Content; 
  </code></pre>
  
  <p><strong>Edit and Resolution</strong></p>
  
  <p>It turns out the code was ok. Boomerang was using a cookie created in another tab. it was just a matter of creating a new nxwitness(api i was calling) account which had the necessary  permissions. </p>