title: Issue with POSTing JSON in a request to App Center API
body: <p>I'm trying to use Notification Push method from App Center API from my application.</p>
  
  <p>So I set a simple button on the screen which should POST a JSON file to an endpoint. 
  Unfortunately, the button does not send a push notification to the device. </p>
  
  <p>Also, trying to get a response from the server ends up as an error:</p>
  
  <blockquote>
    <p>System.Net.WebException: Timeout exceeded getting exception details. </p>
  </blockquote>
  
  <p>Here's the code used when the button is clicked: </p>
  
  <pre class="lang-cs prettyprint-override"><code>private void PushButton_Clicked(object sender, EventArgs e)
  {
      var httpWebRequest = WebRequest.Create("https://api.appcenter.ms/v0.1/apps/username/appname/push/notifications");
      httpWebRequest.ContentType = "application/json charset=UTF-8";
      httpWebRequest.Method = "POST";
      httpWebRequest.Headers.Add("X-API-Token", "apitokenhere");
  
      using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
      {
  
          string json = "{\"notification_content\":{\"name\":\"test\",\"title\": \"test\",\"body\": \"test :)\"}, \"notification_target\": null}";
  
          streamWriter.Write(json);
      }
  
      var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
      using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
      {
          string responseText = streamReader.ReadToEnd();
      }
  }
  </code></pre>