title: VBA - Sending http request within webpage
body: <p>Our company uses a software which opens its applications through a website. I'm trying to use VBA to automate the process of opening a few applications.</p>
  
  <p>After researching, I found out that the website uses a GET request to open each application. 
  What I want to do is:
  1) Open the website and login;
  2) Send the GET request to open the application;</p>
  
  <p>I can open and login just fine, my code is below:</p>
  
  <pre><code>Sub Test()
  
  Dim xhrRequest As XMLHTTP60    
  Set xhrRequest = New XMLHTTP60
  
      Set ie = CreateObject("InternetExplorer.application")
      ie.Visible = True
      ie.Navigate ("http://websitelogin/")
  
      While ie.ReadyState &lt;&gt; 4
      DoEvents
      Wend
  
      Application.Wait (Now + TimeValue("0:00:01"))
  
      ie.document.forms(0).all("txtUsername").Value = "login"
      ie.document.forms(0).all("txtPassword").Value = "password"
      Application.Wait (Now + TimeValue("0:00:01"))
      ie.document.forms(0).all("btn-enter").Click
  
      Application.Wait (Now + TimeValue("0:00:03"))
  
      xhrRequest.Open "GET", "http://getrequest", False 'found out that this _
      is the request made on the browser's developer tools
  
      xhrRequest.send
  
  End Sub
  </code></pre>
  
  <p>Nothing happens after the request is sent. How to know if it's really being requested?</p>