Occasionally, you might want to retrieve content from another website and display it in your own web pages. Now a days, most websites that allow you to publish their content on your web pages will already have their own content sharing system in place where you will just add some basic HTML to your pages and their content will automatically display on your pages.
If you do ever need to retrieve content from another website on your own, though, here is how. Assuming that you have permission to use their content, place the below code on your page and add the URL of the page you want to retrieve the content from.
<%
Set objHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objHTTP.Open "GET", "http://www.domainname.com", false
objHTTP.Send
Response.Write objHTTP.ResponseText
%>
Granted, this is a limited script so it may not suit all of your needs, but chances are if you want to do something more sophisticated than this, you probably should not be using this script. I realize this is a very touchy subject today so please use this script wisely and ALWAYS GET PERMISSION TO USE SOMEONE ELSE’S CONTENT FIRST!