Posted in   
       810
      12:08 am, March 20, 2019 
      asp classic get a url and display it
gets a url and displays it using XMLHTTP
    HTML
<%
 
 set XmlObj = Server.CreateObject("Microsoft.XMLHTTP")
 XmlObj.open "POST", "https://google.com", false
 XmlObj.send
 
 formatdata = XmlObj.responseText
 
 'formatdata = replace(formatdata,"<img src=""../images/logo.gif"">","<img src=""http://yourdomain.com/images/logo.gif"">")
 
 Response.write(formatdata)
 
 Set XmlObj = nothing
 %><%
 
 set XmlObj = Server.CreateObject("Microsoft.XMLHTTP")
 XmlObj.open "POST", "https://google.com", false
 XmlObj.send
 
 formatdata = XmlObj.responseText
 
 'formatdata = replace(formatdata,"![]() ","
","![]() ")
 
 Response.write(formatdata)
 
 Set XmlObj = nothing
 %>
")
 
 Response.write(formatdata)
 
 Set XmlObj = nothing
 %>
    
    
  View Statistics
            This Week
          
          
            170
          
        
            This Month
          
          
            748
          
        
            This Year
          
          
            2305
          
        Add Comment
Other Items in asp
Related Search Terms
Other Categories in Code
    alpine js apps c css factorio font awesome images linux quick modals sqlite site bugs site updates slick slider sliders testing windows apps animation apache api apps asp bat blocking bootstrap bootstrap templates charts cookies core css css filters css grid design elements docker domains emoji fancybox fonts foundation framework gimp git html icons ideas image formatting images javascript javascript functions jquery js linux mac minecraft misc modal modals mysql nginx node php php errors php function php functions php simple html dom pi400 python react regex sections simple_html_dom simplepie php site bugs site documentation slick slick slider sql sqlite ssh sublime svg svg css templates tools video virtual box vscode vue webdev windows windows 11 windows commands wordpress 
  
 
    
   
	
