Read content of a remote web page

5 02 2007

Basicly you can use the folliwing code:

<% 
    url = “http://www.espn.com/main.html” 
    set xmlhttp = CreateObject(“MSXML2.ServerXMLHTTP”) 
    xmlhttp.open “GET”, url, false 
    xmlhttp.send “” 
    Response.write xmlhttp.responseText 
    set xmlhttp = nothing 
%>

For more detail, and for an example in javascript visit ASP FAQ.


Actions

Information

Leave a comment