title: Specified value has invalid HTTP Header characters
body: <p>Im trying to access WOWZA Streaming Cloud through their REST API from an ASP.NET site, however have little experience in RESTSharp.</p>
  
  <p>Here is an example curl I'm trying to create:</p>
  
  <pre><code>curl -H 'wsc-api-key: KEY' -H 'wsc-access-key: KEY' -H 'Content-Type:
  application/json' -X POST -d '{"live_stream": {"name": "MyNewLiveStream",
  "transcoder_type": "transcoded", "billing_mode": "pay_as_you_go",
  "broadcast_location": "us_west_california", "encoder": "other_rtmp",
  "delivery_method": "push", "aspect_ratio_width": 1920,
  "aspect_ratio_height": 1080}}'https://api.cloud.wowza.com/api/v1/live_streams/
  </code></pre>
  
  <p>see: <a href="https://sandbox.cloud.wowza.com/apidocs/v1/" rel="nofollow noreferrer">https://sandbox.cloud.wowza.com/apidocs/v1/</a></p>
  
  <p>Here is the c# code im using:</p>
  
  <pre><code>var client = new RestClient("https://api.cloud.wowza.com/");
          var newRequest = new RestRequest("api/v1/live_streams",Method.POST);
          newRequest.AddHeader("wsc-api-key", ConfigurationManager.AppSettings["WowzaAPIKey"]);
          newRequest.AddHeader("wsc-access-key", ConfigurationManager.AppSettings["WowzaAccessKey"]);
          newRequest.AddHeader("Content-Type", "application/json");
          var body = "{\"live_stream\": {" +
              "\"aspect_ratio_height\": 720," +
              "\"aspect_ratio_width\": 1280," +
              "\"billing_mode\": \"pay_as_you_go\"," +
              "\"broadcast_location\": \"us_west_california\"," +
              "\"closed_caption_type\": \"none\"," +
              "\"delivery_method\": \"push\"," +
              "\"encoder\": \"wowza_gocoder\"," +
              "\"hosted_page\": true," +
              "\"hosted_page_sharing_icons\": true," +
              "\"name\": \"MyLiveStream\"," +
              "\"player_countdown\": false," +
              "\"player_responsive\": true," +
              "\"player_type\": \"original_html5\"," +
              "\"player_width\": 0," +
              "\"recording\": false," +
              "\"target_delivery_protocol\": \"hls\"," +
              "\"transcoder_type\": \"transcoded\"," +
              "\"use_stream_source\": false}";
  
          newRequest.AddJsonBody(body);
          IRestResponse myResponse = client.Execute(newRequest);
  </code></pre>
  
  <p>Following modifications based on the responses, the response code is now </p>
  
  <blockquote>
    <p>"{\"meta\":{\"status\":401,\"code\":\"ERR-401-InvalidApiKey\",\"title\":\"Invalid Api Key Error\",\"message\":\"Invalid API key.\",\"description\":\"\",\"links\":[]}}"</p>
  </blockquote>