title: HTTPS GET call using HttpClient
body: <p>I am getting a 400 bad request trying to call an API using <code>HttpClient</code> and I am not exactly sure what I am missing.</p>
  <p>I have tried the endpoint from my browser and from Postman and have not had any issues, but when I try to use the following code I get a 400 bad request:</p>
  <pre><code>using (HttpClient client = new HttpClient())
  {
      var result = client.GetAsync(&quot;https://api.exchange.coinbase.com/products/ETH-USD/candles?granularity=300&amp;start=2022-03-22&amp;end=2022-03-23&quot;).Result;
  }
  </code></pre>
  <p>Would anyone be able to tell me what I am missing to get this to work?</p>