title: Strange HttpClient result
body: <p>When trying to get data from a Hitbox API I get a strange result. For a one API's command it happens everytime, for the other only sometimes. The result more or less like that (this is the last result I have got): </p>
  
  <blockquote>
    <p>\u001f�\b\0\0\0\0\0\0\u0003콋w�8������s�Μmu�~��s��N�t&amp;��N�g6��C��Ͷ$z%9igf��[(�\u0005�\u000f��(:�6����\u000f\b P�C\u0015\n�\u007f�V�\u007f�d��h����2_�&amp;��ǋ,�����S������q�\u0017�7��\u0019&lt;�n�~��YoVY�\u0018M>�S�kP���|^���w������9�w2��\u0605�4�Ƿ�&amp;\u0015�ƛ��Xo�\u0014[�6w\u0011onVP\u0005��e\u000e�<em>�\u05ca�l�/����⇝��%�u�u�s�����=���k�<code>w��z\u0003�a����SR,���s�1����ůǆ��2~.6\u0006T&gt;��fR��l�(���\u0017�GHoV�&amp;/�m#�'\u0013�C�N/��E|Q�\u0012���3+�6\u0003z\u0012���q&gt;�{�_��eW�7\u0016�rsIw\u0012\u0018&amp;\u0017��V�\u000f�Ŀ\u001f������e�\u0002A��Zg��U\u0006��\\g\u0015�VP��u.E8Hj�</code>LA���/͋��|�����;xk\u001e��ǣZ�\3y��\u00019\u0017���ī\u0002��ڜ���u����O]v���XA</em>�{�\u0004�K�l.o\u0016�%t\u0006�&lt;{̆O��=�\u0017\u0017\u0015%$G��\"Oϡ�\u007f����^̹hH���q�8�\u0001�6�\u0015�y�{<code>��S��4+�pb-\\eI�bB]^</code>\u001f��{��jՊx�\u0004��\u0001�º��QD��\u001eK\u0001;�\u0002+��Y���!�\a��\u001a��(()>e��ש�r0T?��\u001f�Q���5t�R���� \u0005\u001f(���l\u0013�\v�\r-�\n�U?߭_��&amp;�l>�\r0(N4))/���uc��3�\&lt;�U\u0013\u001f\u0002ȱ���^n6ד��g�/�ʹ��ͧ��rP����\u001f���\f4y~\u0005=�V3�\u001c;�k\u0002}�'�m\u001cc�oG��_\u0003b�4�`��</p>
  </blockquote>
  
  <p>It's much much longer but it's pointless to copy all of it (about 30000 characters).</p>
  
  <p>My code that I use to get the json result is:</p>
  
  <pre><code>string result;
  
  using (var client = new HttpClient())
  {
      client.BaseAddress = new Uri(hitboxApiLink);
      client.DefaultRequestHeaders.Accept.Clear();
      client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
  
      HttpResponseMessage response = client.GetAsync(requestString).Result;
      result = response.Content.ReadAsStringAsync().Result;
  }
  
  return result;
  </code></pre>
  
  <p>I used this before:</p>
  
  <pre><code>HttpWebRequest request = (HttpWebRequest) WebRequest.Create(Path.Combine(hitboxApiLink, requestString));
  request.KeepAlive = false;
  request.ContentType = "application/json; charset=utf-8";
  WebResponse response = request.GetResponse();
  
  using(StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8))
  {
      result = reader.ReadToEnd();
  }
  </code></pre>
  
  <p>And it returns the same. But when I try to get data with Google Chrome or Internet Explorer it returns normal result. The api is: <a href="http://developers.hitbox.tv/" rel="noreferrer">http://developers.hitbox.tv/</a></p>
  
  <p>The link I try to get data from is: <a href="https://api.hitbox.tv/media/live/list" rel="noreferrer">https://api.hitbox.tv/media/live/list</a></p>