8
Answers

HttpWebRequest.GetResponse() Missing ??

Photo of Abhishek Kumar Ravi

Abhishek Kumar Ravi

12y
9.2k
1
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)