title: converting curl -x get to vb.net without success
body: <p>I need to convert this to vb.net:</p>
  <pre><code>curl -X GET --header 'Accept: application/json' --header 'X-API-KEY: xxxxxxxxxxxxxxxx' 'https://app.atera.com/api/v3/agents'
  </code></pre>
  <p>What I've tried is:</p>
  <pre><code>Dim myHttpWebRequest = CType(WebRequest.Create(&quot;https://app.atera.com/api/v3/agents&quot;), HttpWebRequest)
      myHttpWebRequest.Headers.Add(&quot;Accept&quot;, &quot;application/json&quot;)
      myHttpWebRequest.Headers.Add(&quot;X-API-KEY&quot;, &quot;XXXXXXXXXXXXXXX&quot;)
      Dim myHttpWebResponse = CType(myHttpWebRequest.GetResponse(), HttpWebResponse)
  
      TextBox1.Text = myHttpWebResponse.ToString
  </code></pre>
  <p>Unfortunatly whatever I tried I get an error.
  Can you help me out here?</p>