Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Response.Buffer = True
Dim objXMLHTTP, xml, strHtmlContent

Set xml = CreateObject("MSXML2.ServerXMLHTTP")

xml.Open "GET", strTemplateURL , False
xml.setRequestHeader "Content-Type","text/plain; charset=utf-8"
xml.setRequestHeader "Cache-Control","no-cache"
xml.Send

strHtmlContent=xml.responseText

Hi, Can I know what actually the code above implies using a layman term?
Sorry, Im still new here..

What I have tried:

I tried google before but their explanation quite hard.
Posted
Updated 18-Feb-18 22:48pm

1 solution

It makes a web request (http) to the url that is in strTemplateUrl, it reads the response and puts the content of that response into strHtmlContent. In other works, it programatically navigates to the url and puts the "source" of that page into a variable.

To do this in .net you'd use something like WebClient.
 
Share this answer
 
Comments
Member 13684938 19-Feb-18 4:54am    
It literally mean the code will take out the source of url (strTemplateUrl)and display the html of the source(strHtmlContent) is it?
Thankss much!!!!
F-ES Sitecore 19-Feb-18 5:00am    
Yes, that's all it does.
Maciej Los 19-Feb-18 11:30am    
5ed!
Member 13684938 19-Feb-18 23:11pm    
what is 5ed?
Maciej Los 19-Feb-18 23:59pm    
5 stars for the answer. It's a bonus.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900