Ver Mensaje Individual
  #7 (permalink)  
Antiguo 23/08/2005, 09:12
Avatar de tamara19
tamara19
 
Fecha de Ingreso: agosto-2005
Mensajes: 12
Antigüedad: 19 años, 6 meses
Puntos: 0
Código:
string sSourceURL = "http://www.yahoo.com.ar";

System.Uri myUri;
myUri = new System.Uri(sSourceURL);
HttpWebRequest HttpWRequest;
HttpWRequest = (HttpWebRequest)WebRequest.Create(myUri);

HttpWebResponse HttpWResponse;
HttpWResponse = (HttpWebResponse)HttpWRequest.GetResponse();

Stream strm = HttpWResponse.GetResponseStream();
StreamReader sr = new StreamReader(strm);
string sText = sr.ReadToEnd();
Console.WriteLine("Response: {0}", sText);
Me da error la linea q dice: HttpWResponse = (HttpWebResponse)HttpWRequest.GetResponse();

Alguien sabe xq???

Gracias!!!