title: VB.NET GET request to Web API with Bearer Token and Body Text - Errors
body: <p>need you advice please.</p>
  <p>I am making WebRequest to download data using API. Please tell me what I am doing wrong.
  API is working as expected and was tested in Postman . co site. Below are image request parameters.
  GET, Authorization, Bearer Token.
  Body, Raw, Text, Text String input para.json below</p>
  <p><a href="https://drive.google.com/file/d/1XNktTt6Db7doAAKxx0MZJ40Y5FGlmvLo/view?usp=sharing" rel="nofollow noreferrer">postman 1</a>
  <a href="https://drive.google.com/file/d/1yk0P6f3gPb4x3sWcWyPWrfEfkJbukaQh/view?usp=sharing" rel="nofollow noreferrer">postman 2</a></p>
  <pre><code>    enter Sub Test()
  
      Dim json As String = File.ReadAllText(&quot;C:\para.json&quot;)
      Dim Tokenx as string = &quot;549539487523948576293485629384756293847&quot;
      Dim result As String
      Dim request = CType(url, HttpWebRequest)
  
      request.ContentType = &quot;text&quot;
      request.Headers.Add(AuthorizationX)
      request.Method = &quot;POST&quot;
  
          Using streamWriter = New StreamWriter(request.GetRequestStream())
              streamWriter.Write(json)
          End Using
  
          Dim response = CType(request.GetResponse(), HttpWebResponse)
  
          Using streamReader = New StreamReader(response.GetResponseStream())
              result = streamReader.ReadToEnd()
          End Using
      End Sub
  </code></pre>
  <pre><code>enter Below are images of errors
  When method is POST, Error 405: Method not allowed
  When method is GET, Error: Cannot send the content body with this verb-type
  </code></pre>
  <p>para.json</p>
  <pre><code>
  [
      {
          &quot;site&quot;: &quot;1339&quot;,
          &quot;po&quot;: &quot;55090925&quot;,
          &quot;line&quot;: 6
      },
      {
          &quot;site&quot;: &quot;1339&quot;,
          &quot;po&quot;: &quot;55090925&quot;,
          &quot;line&quot;: 10
      },
      {
          &quot;site&quot;: &quot;1339&quot;,
          &quot;po&quot;: &quot;55090926&quot;,
          &quot;line&quot;: 34
      }
  ]
  
  </code></pre>
  <p><a href="https://drive.google.com/file/d/1TlK74R4Z6EzXQDC925wRf1Yyb8BXmS63/view?usp=sharing" rel="nofollow noreferrer">error-1</a>
  <a href="https://drive.google.com/file/d/1d-HfirZfTtxAFk-tdEiJAM5uXsf0bnys/view?usp=sharing" rel="nofollow noreferrer">error-2</a></p>