ASP - guardar codigo fuente en asp

 
Vista:

guardar codigo fuente en asp

Publicado por carlos (1 intervención) el 16/03/2009 10:00:43
Hola, me gustaría guardar en una variable el código fuente de una url determinada:


<%

dim objXMLHTTP

URL = ("http://www.google.es")
Set objXMLHTTP = Server.CreateObject(”Microsoft.XMLHTTP”)
objXMLHTTP.Open “GET”, URL, false
objXMLHTTP.Send
Response.Write objXMLHTTP.responseText
Set objXMLHTTP = Nothing

%>



pero me da error:

##################################################################################
Información técnica (para personal de soporte técnico)

Tipo de error:
Error de compilación de Microsoft VBScript (0x800A0408)
Carácter no válido
/pb.asp, línea 6, columna 37
Set objXMLHTTP = Server.CreateObject(”Microsoft.XMLHTTP”)
------------------------------------^

Tipo de explorador:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)

Página:
GET /pb.asp

###############################################################################################################

donde está el fallo ?

gracias, saludos
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder