/// <summary> /// Send a GET request to a web page asynchronously. The result will be returned in OnHttpResponse. /// </summary> /// <param name="url">The address to GET.</param> public bool Get(string url, ProxySettings settings) { if (!busy) { busy = true; request = new HttpAsyncInfo(); request.url = url; request.settings = settings; background.RunWorkerAsync(RequestOption.Get); return(true); } else { return(false); } }
/// <summary> /// Send a GET request to a web page asynchronously. The result will be returned in OnHttpResponse. /// </summary> /// <param name="url">The address to GET.</param> public bool Get(string url, ProxySettings settings) { if (!busy) { busy = true; request = new HttpAsyncInfo(); request.url = url; request.settings = settings; background.RunWorkerAsync(RequestOption.Get); return true; } else { return false; } }