title: Why isn't MSXML2.ServerXMLHTTP response returning the full html source?
body: <p>I am wondering why the response property of an MSXML2.ServerXMLHTTP object not returning the full html source. It appears it is only returning the "inner html". I can create an IE object and get the "outer html" but that is not too efficient since I have hundreds of search items.</p>
  
  <p>I have the function shown below (with the URL) that assigns the HTML content to a string. </p>
  
  <pre><code>Sub test()
      Dim myString As String
      myString = getECICS2("103-90-2") ' myString only contains inner html
  End Sub
  
  Public Function getECICS(ByVal casNum As String) As String
    Dim XMLhttp: Set XMLhttp = CreateObject("MSXML2.ServerXMLHTTP")
    XMLhttp.setTimeouts 2000, 2000, 2000, 2000
    XMLhttp.Open "GET", "http://ec.europa.eu/taxation_customs/dds2/ecics/chemicalsubstance_consultation.jsp?Lang=en&amp;Cas=" &amp; casNum &amp; "&amp;Cus=&amp;CnCode=&amp;EcCode=&amp;UnCode=&amp;Name=&amp;LangNm=en&amp;Inchi=&amp;Characteristic=&amp;sortOrder=1&amp;Expand=true&amp;offset=0&amp;range=25", False
    XMLhttp.send
    If XMLhttp.Status = 200 Then
      getECICS = XMLhttp.responseText
    Else
      getECICS = ""
    End If
  End Function
  </code></pre>
  
  <p>Thanks in advance</p>