8
Answers

HttpWebRequest.GetResponse() Missing ??

What is Wrong with it ....

HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(________________________ URL with STRING ________________________________);
  HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse(); // Intelisence doesn't show GetResponse()

  System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());

  string responseString = respStreamReader.ReadToEnd();

  respStreamReader.Close();

Even in Object Window there is no GetResponse() method , but i do get in Windows Form /WPF section !!
Answers (8)