title: Null response while making a POST request using HttpClient from android Xamarin
body: <p>Iam sending a POST request from my android app using Xamarin. Iam using <code>HttpClient</code> to make the request</p>
  
  <p>Things I have done:</p>
  
  <p>1) Specified Internet permission
  2) Tested the request from Postman for google Chrome
  3) Debugged the code step by step</p>
  
  <p>Problem:</p>
  
  <p>1) I get the response as <code>null</code>.
  2) Found the issue might be while receiving the response.</p>
  
  <p>Here is my code:-</p>
  
  <pre><code>var resultString = String.Empty;
          var registerContent = new StringBuilder();
  
          registerContent.Append("DeviceId=");
          registerContent.Append(deviceId);
          registerContent.Append("&amp;");
          registerContent.Append("Name=");
          registerContent.Append(deviceName);
          registerContent.Append("&amp;");
          registerContent.Append("EncodedAccountName‏=");
          registerContent.Append(username);
  
  
        var client = DataClient.Instance;
          var request = new HttpRequestMessage(HttpMethod.Post,new Uri(EndPoints.RegisterDeviceEndPoint, UriKind.Absolute))
          {
              Content = new StringContent("DeviceId=" + deviceId + "&amp;Name=" + deviceName + "&amp;EncodedAccountName=" + username)
          };
  
       request.Content.Headers.ContentType = new MediaTypeHeaderValue("application/x-www-form-urlencoded");
  
          var result = await client.SendAsync(request);
          if (result.StatusCode == HttpStatusCode.OK)
          {
              resultString = HostUrl.GeAuthorizationtResult(result.Content.ReadAsStringAsync().Result);
          }
          return resultString;
  </code></pre>
  
  <p>Any help is appreciated
  Thanks</p>