Abhishek Kumar Ravi

Abhishek Kumar Ravi

  • NA
  • 11.5k
  • 4.5m

HttpWebRequest.GetResponse() Missing ??

Jul 11 2013 3:04 AM
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)