title: RestSharp to httpwebrequest converting process
body: <p>I am trying to make a api call to "<a href="https://api.getresponse.com/v3" rel="nofollow noreferrer">https://api.getresponse.com/v3</a>" with header <strong>"X-Auth-Token: api-key jfgs8jh4ksg93ban9Dfgh8"</strong> i already did it with RestSharp library bellow but somehow this not works. So i want to try same thing with httpwebrequest. Please provide an example same request using httpwebrequest i am new to c# that's why need help. Thanks in advance  </p>
  
  <pre><code> var client = new RestClient("https://api.getresponse.com/v3");
   var request = new RestRequest("/campaigns/", Method.POST);
  
   request.AddHeader("Content-Type", "application/json");
   request.AddHeader("X-Auth-Token:", "api-key 948dff91a017a07f3c6");
   request.Parameters.Clear();
  
   var response = client.Execute(request);
  </code></pre>