Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/03/2004, 13:50
Relket
 
Fecha de Ingreso: octubre-2003
Mensajes: 85
Antigüedad: 23 años, 1 mes
Puntos: 0
Obtener Código fuente de una Web

Utilizando el nombre de función que mencionaste el codigo sería el siguiente:

Código PHP:
Function TraeFuente(URL)
   
Set Fuente = Server.CreateObject("Microsoft.XMLHTTP")
   
Page = "http://" & URL
   Fuente
.Open "GET", Page, False    
   Fuente
.Send
   TraeFuente 
=  "<xmp>" & Fuente.responseText & "</xmp>"
  
Set Fuente = Nothing
End 
Function 
SourceCode = TraeFuente("www.cnn.com")

Eso es todo.
__________________
ASP.Net - Relket - ASP.Net

Última edición por Relket; 09/03/2004 a las 14:09