/ Forums / Advansys Formativ / Creating Solutions with Formativ / WebRequest / Reply To: WebRequest
February 11, 2010 at 4:25 pm
#8163
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
Regards,
Advansys Support