response.IsSuccessStatusCode
success = resp.StatusCode == HttpStatusCode.OK;
bool success;
do {
get_url = request_uri + s;
req = (HttpWebRequest) WebRequest.Create(get_url);
resp = (HttpWebResponse) req.GetResponse();
sr = new StreamReader(resp.GetResponseStream(), Encoding.GetEncoding("utf-8"));
content = sr.ReadToEnd();
sr.Close();
success = resp.StatusCode == HttpStatusCode.OK;
System.Threading.Thread.Sleep(250);
} while(!success);
do {
HttpWebRequest req;
HttpWebResponse resp;
StreamReader sr;
get_url = request_uri + s;
req = (HttpWebRequest) WebRequest.Create(get_url);
resp = (HttpWebResponse) req.GetResponse();
sr = new StreamReader(resp.GetResponseStream(), Encoding.GetEncoding("utf-8"));
content = sr.ReadToEnd();
sr.Close();
} while(content == null);