title: Setting RequestHeaders for Get REST API in Visual Basic
body: <p>I have located some sample source code in visual basic to call a REST API. However, I need to modify the code by adding two request headers. </p>
  
  <pre><code>        ' Create the web request  
          request = DirectCast(WebRequest.Create(sURI), HttpWebRequest)
  
          'Update request headers with request pairs Header1/"header1 value" and header2/"header2 value"
           ??? HttpWebRequest.headers.Add ????
  
          ' Get response  
          response = DirectCast(request.GetResponse(), HttpWebResponse)
  
          ' Get the response stream into a reader  
          reader = New StreamReader(response.GetResponseStream())
  </code></pre>
  
  <p>Any help would be appreciated. Thanks!</p>