Support 3

WebRequest in System.Net namespace, we are not sure whether you can use it in VBScript.

However, you can use HTMLDom object then use its methods to access URL. In Formativ, you can use “Utilities.HTMLDom” to acesss HTMLDom object, see the Formativ Language guide for more information.

Sample code below access the URL using Utilities.HTMLDom then use Document (IHTMLDocument2 instance) to get InnerHtml.

  dim oHtmlDom

  set oHtmlDom = Utilities.HTMLDom
  if (oHtmlDom.LoadFromURL("http://mycompany.com")) then
     msgbox oHtmlDom.document.body.innerhtml
  end if

  set oHtmlDom = nothing

Advansys Support